Originally posted by Rashmi Trivedi:
I am preparing for SCJP exam and plannig to appear in the exam sometimes next month. I have almost finish upto ch 8 and got little confused with my self about how ch 9 to 12 are important in SCJP exam....
Ch 9 is Layout Manager
Ch 10 is Events
Ch 11 is Components
Ch 12 is Paiting...
I have decided not to study ch 12 coz it is very boring....
So guys can u tell me or highlight the main topic in above chapters which i can concentrate rather than studying whole chapters.....
I appreciate your time and consideration...and looking forward to hearing from u shortly....
Originally posted by Paulo Silveira:
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
Originally posted by pradeep bhat:
Can a method with no access modifier be overriden by a method marked protected?
Java ranch says it is True.
But I say it is "false".
A method can over ride another method if its access modifier is same or less restrictive than the overriden method.
Some one plz clarify.
Originally posted by Gautam Sewani:
I have some queries related to RandomAccessFile:
1.What is the need for the class RandomAccessFile when we have FileInputStream and FileOutputStream?
2.The following code produces strange results:
RandomAccessFile raf=new RandomAccessFile("Io.java",rw);
raf.writeUTF("This has been written by RandomAccessFile");
When I execute thid code and open the Io.java file,then it has the following text:
"(This has been written by RandomAccessFile" without quotes.
Now why is there a bracket before the text??
3.When the same program is executed using the method writeChars(),then Io.java contains the following information:
"T h i s h a s b e e n w r i t t e n b y R a n d o m A c c e s s F i l e"
Why is there a space between each character?
4.When we call the seek method of the RandomAccessFile,where does the next read/write operation take place,at the new Position or after the new Position?
5.Can a RandomAccessFile object be closed?