• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

My exam tips for you

 
Alan Mar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got 98% this morning (Oct.18) in MD. Javaranch guys, thanks.
I will post several posts here talking about the exam. I'll begin with the overloading and overriding (my favorite part)
Basically SCJP just wants you know what's the valid overloading and overriding. They will give you some code snippet and you pick one or more correct overloading and overriding methods from the answers. Usually, this kind of questions is not tough. But things become a little complex when mixing with the other testing objectives, such as, "could you overload the main method", "could you override the private method", etc, etc. But in general, SCJP don't give too tricky questions on this objective. So you just master the basic theory of overloading and overriding. Then combine with the other skills.
With regard to modifiers, I want you guys to pay attention to several things. First, top-level class can never be modified with private or protected; Secondly, volatile and final cannot together modify a variable; Thirdly, it's ok to have static inner class and also remember you need not to have an instance of outer class to use the static inner class, this kind of inner class behaves the same way as other static members of a class. I have met some sneaky questions combining all the modifiers together. So please pay some attentions to them.
Then let's talk about thread. Yes, thread! I got thread questions relating with possible deadlock, running results of multiple threaded code and transferring between different thread statuses. I must admit that this objective is not that easy. I recommend you to write some codes to test synchronization, thread priority. I believe this is the only good way to get more thorough understanding of the mechanism. Sun do have some tricky questions for this part. I agree with all others that this is the most difficult part in SCJP.
OK. I will talk the other issues in the next posts.
 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congrats again Alan,
98%
Waiting for more tips, mind sharing with us how you studied the big three of SCJP?
1) Threads!!!
2) IO
3) AWT
Any special notes for them, any commercial mock tool? How long did you prpare for this, have you been doing Java programming for quite some time?
I know, I have asked lot of questions, but with your score it's mandatory that you share your *secrets* with us
Awaiting more tips from you,
- Manish
 
Roopa Bagur
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations Alan Excellent score.. I appreciate your tips..
Did you get lot of questions in awt,io & bit shifting?
Thanks,
Roopa.

oiginally posted by Alan Mar:
I got 98% this morning (Oct.18) in MD. Javaranch guys, thanks.
I will post several posts here talking about the exam. I'll begin with the overloading and overriding (my favorite part)
Basically SCJP just wants you know what's the valid overloading and overriding. They will give you some code snippet and you pick one or more correct overloading and overriding methods from the answers. Usually, this kind of questions is not tough. But things become a little complex when mixing with the other testing objectives, such as, "could you overload the main method", "could you override the private method", etc, etc. But in general, SCJP don't give too tricky questions on this objective. So you just master the basic theory of overloading and overriding. Then combine with the other skills.
With regard to modifiers, I want you guys to pay attention to several things. First, top-level class can never be modified with private or protected; Secondly, volatile and final cannot together modify a variable; Thirdly, it's ok to have static inner class and also remember you need not to have an instance of outer class to use the static inner class, this kind of inner class behaves the same way as other static members of a class. I have met some sneaky questions combining all the modifiers together. So please pay some attentions to them.
Then let's talk about thread. Yes, thread! I got thread questions relating with possible deadlock, running results of multiple threaded code and transferring between different thread statuses. I must admit that this objective is not that easy. I recommend you to write some codes to test synchronization, thread priority. I believe this is the only good way to get more thorough understanding of the mechanism. Sun do have some tricky questions for this part. I agree with all others that this is the most difficult part in SCJP.
OK. I will talk the other issues in the next posts.

 
Muhammad Farooq
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations Alan, its really a great achievement.
--Farooq
 
Fei Ng
Ranch Hand
Posts: 1245
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations !!! Great score!!
what is next for you?
 
Yothin Phorn
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's great!!! Congratulations Alan.
-Yo-
 
Madan, Gopal
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Alan:
Congrats first.
I understand you took the exam in MD. I am also in MD. Can you tell me which center you took the exam in and any preferences & encounters.
Thanks
 
Alan Mar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manish: (The following are for you)
I didn't use any commercial mock tool to prepare for SCJP. But I do spend lots of time coding and playing around with the code. In my SCJP exam, I got about 5 questions on Thread, 4 question on IO and 4 or 5 questions on AWT.
With the AWT questions, you should know not only the features of different layouts, but also know some frequently used methods like setVisible(boolean flag). But be aware that Sun may give you some unfamiliar methods, I got one today, that is show() method in window component. Usually we just use setBounds/setSize and setVisible to show the frame, but we could also use the inherited method pack()/show() to make the frame application visible.
I believe IO section just test how much you could remeber from the JLS. SCJP test you on questions like which is the correct way to construct a inputstream, usually the choices would put the class implicit conversion/cast together with the construcing inputstream, know aht I mean, such as Inputstream ios = new FileInputStream(new File("SCJP.txt")); Therefore, you should remember as many stuff as you can. The best way is to do some real coding wiwth these classes.
Threading is not an easy issue. I think we should bear in mind kinds of things: First, threading behavior is platform-dependent; Secondly, only synchronized method/method block can mae sure your data not be corrupted by multithread.(at least in theory) I could not give you the real exam qustions here, but I think you definitely could find many examples somewhere. Thridly, make sure you know exactly the functions of run() and start(); In addition, be crystal clear with different thread status, like blocking\blocked, ready, runnning and etc.
 
Alan Mar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Roopa (The following are for you):
As I said in last post, in my SCJP exam, I got about 5 questions on Thread, 4 question on IO and 4 or 5 questions on AWT, also I got only 2 questions on shifting. I believe shifting is not a big issue compared with other objectives. For example, do you think 16>>4==16>>>4 returns true? (This is EXACTLY not the real questions, but I just put a another way, you got me You just try different shifting operator in some tests ans you would never be confused again.
 
Alan Mar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Though this should not work like brain dumping, I still want to you guys pay some attention to the mehtods in Thread class and make sure you definitely know what they will do when called. for example, interrupt(), join(), etc.
 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Alan,
Useful tips indeed.
Regards,
- Manish
 
leena rane
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hearty Congratulations Alan,
98% - gr88888888888888
 
leena rane
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx for your explanations and tips.
Originally posted by Alan Mar:
Usually we just use setBounds/setSize and setVisible to show the frame, but we could also use the inherited method pack()/show() to make the frame application visible.

i didn't know pack/show could be used exactly like setSize/setVisible.Can you(or anybody else) further explain
on this.I used to think pack is just for 1 thing:when components are added in a container,you only see them after you maximize
(or somehow make paint to run) pack ensures that you will see it for the first time also.

 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be aware that pack is not for every container but for any Window instance since the method pack is defined in the class Window and thus is available to all its descendents !
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
Guoqiao Sun
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations, Alan, great score!
Best wishes,

------------------
Guoqiao Sun
Sun Certified Programmer for Java™ 2 Platform
try my mock exam¹²³ at my homepage.
 
Vikrama Sanjeeva
Ranch Hand
Posts: 760
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marvellous achievement.....No Doubt!! U R 100%
OK..Alan u have told about I/O.But from which book you have done I/O.This is the only topic which is very difficult for me.
What about JLS.Did u read it wholey or partially?.And which mocks you have done.
Viki.
 
Jennifer Warren
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
congrats!,
great score and even better are the tips. Well, I have on e question too. What's the percentage of question in which you have to deal with the code that is dry running to reach to the answer. Mainly my worry is the time factor. Was time a problem in the test or we need not to worry about that.
Thanks.
Jennifer.
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations! great score!
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
moving this to Results forum
 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What a score, Alan! congrats man....what r u planning next?
------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic