• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

How tough are the IO and AWT questions?

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys
I am taking the exam next monday.
I am really prepared.... but sometimes I get scared about some questions that appear on mock exams...
IO and AWT... how are the questions? In some Mocks, I see MANY API questions, like if a RandomAcessFile can delete the file that it is referencing (can not) and how is the hierarchy of some IOs, if objectinputstream implements interface A or subclass class B...

are these kinda question for real?
I dont like these.
What about StringBuffer? I ve seen also for the String class, if the .substring(int) method returns the right part or left part.
Does anyone hae a good mock that really represents IO and AWT?
thanks a lot
 
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Types of questions on I/O:
-"r","rw" parameter in RandomAccessFile() constructor
-InputStreamReader/OutputStreamWriter
-write() method of InputStream.
-methods of Reader/Writer
-methods of DataInput/DataOutput
-You had to know what happens(a.txt is created or not) when you call this constructors:
FileOutputStream("a.txt");
File("a.txt");
RandomAccessFile("a.txt","rw");
-You must know that, RandomAccessFile's write() method writes to the beginning of file,FileOutputStream in 'append' mode writes to the end of file.
About I/O you can read in Khalid Mughal's chapter 18(you can download it)-this chapter describes what you need for exam.
http://www.ii.uib.no/~khalid/pgjc/jcbook/sample-chapters.html
Other sources:
Velmurugan's Notes
http://www.geocities.com/velmurugan_p/
My SCJP Notes
http://www.j-think.com/jNotes.htm
Jamal Hasanov
www.j-think.com
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

-write() method of InputStream.


write()?
read(), right?
 
Jamal Hasanov
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I meant OutputStream
Jamal
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Paulo Silveira:
Hi guys
I am taking the exam next monday.
I am really prepared.... but sometimes I get scared about some questions that appear on mock exams...
IO and AWT... how are the questions? In some Mocks, I see MANY API questions, like if a RandomAcessFile can delete the file that it is referencing (can not) and how is the hierarchy of some IOs, if objectinputstream implements interface A or subclass class B...

are these kinda question for real?
I dont like these.
What about StringBuffer? I ve seen also for the String class, if the .substring(int) method returns the right part or left part.
Does anyone hae a good mock that really represents IO and AWT?
thanks a lot


Kind of Questions that I came across during my exam..
I/O:
1. Constructor for FileInputStream?
2. Valid access options for RandomAcessFile?
3. Can BufferedInputStream be constructed using FileName?
AWT:
1. Use of CheckGroup?
2. Clipping Region of a Component?
HTH
 
Paulo Silveira
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
really really thanks!
thats great
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic