• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SCJP 6.0

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys,

I have been reading this book (SCJP Sun Certified Programmer for Java 6 Study Guide (Exam 310-065) by Bates & Sierra reprint edition 2009.

I will be appearing for the exam maybe on 10th of February 2010, yet i have to cover the collections and thread chapters.

I didn't really understand the marking system as well the number of marks allotted to each chapter. Are all the chapter's equally important or some chapters will have more questions than others ?

besides there are question have have more than one correct choice. for example if in a question there is two correct choice and i figure only one, does that mean i will get half marks for that questions or the question is considered totally wrong.


If anyone can tell me the difference between (==) and .equals() method.

does .equals() check for object type as well as for the values?

when i say ,

String s1 = "hi";
String s2 = new String("hi");

System.out.println(s1==s2); //outputs: false
System.out.println(s1.equals(s2)); //outputs: true

i know that s1 is stored in string constant pool and s2 is an object stored in memory, but the values are same, i mean this two methods are confusing me a bit, just wanna know which one focuses on object type and which one on value or both.

regards,


 
Ranch Hand
Posts: 400
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rafi Fareen wrote:
If anyone can tell me the difference between (==) and .equals() method.

does .equals() check for object type as well as for the values?

when i say ,

String s1 = "hi";
String s2 = new String("hi");

System.out.println(s1==s2); //outputs: false
System.out.println(s1.equals(s2)); //outputs: true

i know that s1 is stored in string constant pool and s2 is an object stored in memory, but the values are same, i mean this two methods are confusing me a bit, just wanna know which one focuses on object type and which one on value or both.

regards,




System.out.println(s1==s2); //outputs: false
basically == check the memory address whether both object refer to same object in memory or not.

System.out.println(s1.equals(s2)); //outputs: true
and equals(obj) check whether the both string objs are equal meaningfully or not.


hth.
 
Minhaj Mehmood
Ranch Hand
Posts: 400
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
regarding your question about marking system.

Yes, all chapters are equally important, and this is also possible you will have 0 questions from threads or 0 question from collections and so on....
i think that's totally depend on the sun - as per my research.
in my case i got only 3 questions from thread but i know one of my colleague who got 12 questions only from threads section therefor its totally depends on your luck :P
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rafi, please Use A Meaningful Subject Line when you start a topic.

Regarding String comparison, read a tutorial like this or this or this...
 
Ranch Hand
Posts: 462
IntelliJ IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rafi Fareen wrote:
Are all the chapter's equally important or some chapters will have more questions than others ?



All the chapters are really very important... I had met some questions with threads when i have participated in this exam... Unfortunately that I will be compelled to give this exam for the second time
 
Rafi Fareen
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rizvan Asgarov wrote:

Rafi Fareen wrote:
Are all the chapter's equally important or some chapters will have more questions than others ?



All the chapters are really very important... I had met some questions with threads when i have participated in this exam... Unfortunately that I will be compelled to give this exam for the second time




Ankit Garg ;) i got it, from next time i will use proper subject line.

Rizvan Asgarov, i'm studying these chapters and definitely will not appear for the exam again ;) once and final.
I will post what happens in the exam, not sure yet when i will appear for it.

Thanks M M Kaimkhani for the useful reply, but no one answered one questions, maybe Ankit Garg can answer it.

if a question is having to correct choice and i be able to select one of the two correct choice, does that mean i will get half mark of the question or the question is considered false in whole.

regards,

Rafi
 
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no. you will get zero marks if you give one correct answer for a question having more than one correct answers.
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good luck for the exam, I am also planning to take it during the next two weeks, and am sure I won't have to give it again
 
Rafi Fareen
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Neha Daga wrote:no. you will get zero marks if you give one correct answer for a question having more than one correct answers.



thanks that is what i wanted to know.

regards,

Note: I have become a "Ranch Hand" what's that supposed to mean ... any specialty???

reply
    Bookmark Topic Watch Topic
  • New Topic