George Dee-Brown

Ranch Hand
+ Follow
since Mar 15, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by George Dee-Brown

Congratulations Andy.
How much experience did you have with Java before the 8 days study?
regards,
George
21 years ago
91%
Azaman,
the link for JTips mock exams is http://www.jtips.net/index.html.
The standard exams (sample 1-9) in JQplus contain all grades of question except the most difficult that they refer to as "Real Brainers". Once you have taken all 9 samples you have seen 540 questions. Doing the random tests is just going to repeat these questions with some "real brainers".
I would suggest doing all 9 sample tests then running some custom tests with just VT (very tough) and RB (real brainers) especially in the areas you are weakest. Also consider doing this for threads and I/O as you can expect close to 15 question from these areas in the SCJP2 exam.

70% is a good score for your first exam. Dont expect a high score from the JTips exams as they contain tricky question on the fundamentals.
Good luck!
...George
23 years ago
91%
Guys,
thanks for the all good wishes!
Another point I remembered from reading a post by Persy is that it is important to be clear about the difference between pre and post increment.
e.g.
Int x = 0; System.out.println(x++); // will print 0. x = 1.
This may be embedded in 15-20 lines of code which looks tricky but I belive the extra code is there just to distract you from the main point.
good luck,
...George
23 years ago
Percy,
60++ is not a pass.
++60 is. It may sound trivial but I had a question on pre/post increment when I took the SCJP2 last Thursday.
Good luck!
...George
P.S. congratulations Dave...
23 years ago
Good news Leon!
I understand that the Sun certificate you recieved states you attained a passing grading and does not include the %.
congratulations from Dublin,
George
23 years ago
91%
Siobhan,
I did not try to review questions that I had not marked so I cant say for certain. I was reviewing the final marked question when my 2 hours finished!
My guess is that you can review unmarked questions. When you complete question 59 a "review" button appears. When you press this a screen is displayed with 4 columns containing 59 buttons. The marked questions are indicated "M" so I am guessing that you can select unmarked buttons as well.
Regards,
George
23 years ago
91%
Samira,
I made 7 pages of hand written notes from Muhgal and questions I got wrong in the mocks. Some interesting points are:
- the(variable); is not valid to chain local constructors
- String s = "G"; int i = 0; s += i; is valid as is s = s + i;
- inherited protected members can be accessed by sub-classes in different packages only when the reference variable is a sub-class.
- array initialization w/bracketed list can only occur w/declaration
- Writer.write() only takes String, char[] and int. NOT char!
- default construtors are assigned the accessibility of the class therefore classes without a constructor and with default accessibility can not be subclassed in other packages.
- String x = null; is considered initialized.
- null can be passed as a parm to all methods taking an object as long as there is only one class at the end of the inheritance heirarchy.
- reference valiables can have the same name as the class i.e. String String = new ("X");
- variables declared inside main are not initialized as they are local to main.
- acquiring a monitor will not prevent a non-sync method from accessing shared resources.

Velmurugan's notes are excellent. If you understand these notes you will pass. ([email protected]).
Regards,
George
23 years ago
91%
Hey rancheros,
I took the exam yesterday after studying for 3 months. I found the following to be the most helpful :
1. Mughal "A programmer's Guide to Java Certification". Chapters 1-14 & 18. I read these chapters twice, answered the chapter questions, did the exercises for I/O and Threads and did the exam at the back of the book. The book has an academic style with precise English and clear instructive examples. If you are going to buy it make sure you get the latest version by checking the publisher's site (www.awl.com/cseng) as my version of the book required over 30 pages of errata ( http://www.ii.uib.no/~khalid/pgjc/jcbook/ ).If I were only allowed one resource, Mughal would be it.
2. Writing, compiling and running code using JDK with TextPad. I got these from the CD that comes with "Core JAVA 2" volume 1 or 2, however they are also available by downloading. The books are average (I only read half of volume 1) but worth the cost to get the CD as downloading JDK can take hours. Setting the TextPad "run" menu to JavaC enables you to run the compiler directly from TextPad.
3. JQPlus sample 1-9, the "Very Tough Test" and a customized test consisting of all (VE,E,T,VT &RB) IO and threads. JQ+ have copied many of the questions without any changes straight from the free Mughal exam engine. It is still worth the $20 for the improved interface and excellent explanations (also the Mughal exam engine just gives an exam % - i.e. it does not tell you which questions you got wrong/right).
4. The Java API http://java.sun.com/products/jdk/1.2/docs/api/index.html. I used this to verify important classes such as Math, String StringBuffer, Object, File, Thread and interfaces Runnable and DataInput/Output.
5. Velmurugan's excellent study notes ([email protected]). Thanks again!
6. WWW.JAVARANCH.COM I checked the "exam results" board regularly which kept me motivated. Also the round-up is the only mock with a sense of humour!
I finished the exam with only 12 minutes to spare and used this time to review questions that I had marked. There were many questions with code (which you can view using the Exhibit button) but few, if any, had more than 15 lines. Only one question required me to enter text (this was related to the contents of a String/ StringBuffer). The I/O and Thread were well covered by Mughal and JQ+. Understanding thread synchronization is important.
There are some questions that are definitely meant to mislead i.e. the exhibit looks like a complicated scenario but actually is about overriding/overloading or even access modifiers.
I read each word of the code before looking at the possible answers. There was a lot more questions on inner classes than I expected.
Other Mocks I found useful:
- JTips1 & 2. For difficult questions on the fundamentals.
- JavaPrepare
- MG1 & MG2.
Mocks to avoid:
- MG3 has a lot of problems which I've told Marcus about.
- JXAM has some incorrect questions/answers
- JCertify - the exhibit code has to be viewed thru a 7 line textarea. This quickly became unusable.
- JavaCaps and the Mughal exam engine - do not tell you which questions you got right/wrong, just an overall score.
I also bought Exam Cram but found Velmurugan's study notes and my own notes written from Mughal/JQ+ more useful. The Cram Sheet is more of a gimmick than a useful pre-exam reminder ( it does not include threads or IO which you are guaranteed about 12-15 questions on). I read the alerts and tips in the week prior to the exam. Also it has a list of 11 "words reserved not currently in use" of which only 2 are correct!
The bottom line is, when you don't understand something or get a mock exam question wrong, write it down. Then write code to test these points. Its also very instructive to copy the code from JTips exam questions and paste it into a .java file in Textpad where it can be compiled.
Good luck!
George
23 years ago
Karen,
if you are planning on taking the SCJP2 exam the best book is "A Programmer's Guide to Java Certification" by Khalid A. Mughal & Rolf W. Rasmussen. I bought it as most postings on JavaRanch recommend it and because of the positive reviews on AMAZON.COM.
I have many years programming experience using non-OO languages and have learned Java using this book. For the exam you do not need to read chapters 15,16,17 and 19.
The author has a clear understanding of Java and does not "dumb down" anything.
good luck,
George
P.S. make sure you get the latest revision as the one I have (I think the first print) has 43 pages of errata!
------------------
23 years ago
Karen,
if you are planning on taking the SCJP2 exam the best book is "A Programmer's Guide to Java Certification" by Khalid A. Mughal & Rolf W. Rasmussen. I bought it as most postings on JavaRanch recommend it and because of the positive reviews on AMAZON.COM.
I have many years programming experience using non-OO languages and have learned Java using this book. For the exam you do not need to read chapters 15,16,17 and 19.
The author has a clear understanding of Java and does not "dumb down" anything.
good luck,
George
P.S. make sure you get the latest revision as the one I have (I think the first print) has 43 pages of errata!
------------------
I have posted questions that have not recieved replies... its nothing to do with nationality.
...George
P.S. what is an American name?
23 years ago
Hello,
does a "Reader" read 1 byte at a time? I tought since a reader is intended to be used for characters it would read 1 unicode (16 bit) char at a time, but when I wrote:
stream.writeByte((byte)69);
stream.writeChars("ABC");
to a file using a stream then read the same file using a reader I got:
System.out.println((char)br.read()); // prints E
System.out.println((char)br.read()); // prints nothing
System.out.println((char)br.read()); // prints A
System.out.println((char)br.read()); // prints nothing
System.out.println((char)br.read()); // prints B
System.out.println((char)br.read()); // prints nothing
System.out.println((char)br.read()); // prints C
It looks like the reader is reading 1 byte at a time!
Any opinions?
...George
23 years ago
Scott,
congratulations! I will be taking the exam in 2 weeks time!
You said the exam consisted of:
"Lots of I/O (what a pain memorizing all those darn java.io class
constructors!), threads, and quite a bit of awt/graphics."
What do you mean by "graphics"?
Regards,
George
23 years ago
IOers,
I am correct in stating that a Reader reads 1 byte at a time? I tought it read by default 1 unicode (16 bit) char at a time. I wrote the following very simple test program to write (using a stream) a byte followed by 3 chars. When I read these using a reader it seems to read one byte at a time (8 bits) not 16!
import java.io.*;
public class Test5
{
public static void main(String[] args)
{
File f = new File("io2.txt");

try {
FileOutputStream fos = new FileOutputStream (f);
BufferedOutputStream bos = new BufferedOutputStream(fos);
DataOutputStream dos = new DataOutputStream (bos);

byte x = 69;
dos.writeByte(x);
dos.writeChars("ABC");
dos.close();
}
catch (IOException ioe) {System.out.println(ioe);}

try {
FileReader fr = new FileReader (f);
BufferedReader br = new BufferedReader (fr);
System.out.println((char)br.read()); // prints E
System.out.println((char)br.read()); // prints nothing
System.out.println((char)br.read()); // prints A
System.out.println((char)br.read()); // prints nothing
System.out.println((char)br.read()); // prints B
System.out.println((char)br.read()); // prints nothing
System.out.println((char)br.read()); // prints C
br.close();
}

catch (IOException ioe) {System.out.println(ioe);}

}
}
regards,
George
23 years ago
Guys,
there are two factors at play here.
1. People that fail probably dont post their results.
and
2. People who wait until they are consistently getting 80-90 using one of the "good" mock exam engines are much less likely to fail. Likewise those who dont pass the mock are probably not going to take the SCJP.
"Easy" and "Difficult" are relative terms.
For what its worth...Corolis (the publisher of the Exam Cram series) rate the SCJP 4/5 (5 being the most difficult) relative to the other exams that they publish books for.
regards,
George
23 years ago