• 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

keywords

 
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are null,true,false ,goto keywords? what is the diffeence between a keyword and reserved literal? Any i expect questions on keywords in the scjp exam?


 
Sheriff
Posts: 9708
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
See this. Goto is a keyword; null, true and false are literals. You should expect questions on the exam which use a keyword as an identifier while the question seems to be about method overloading i.e. sometimes the questions trick you into focusing on something else and actually there's a problem somewhere else...
 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That means I have to remember all those keywords and the literals and see if the question violates the rule by using those as an identifier...
 
Ankit Garg
Sheriff
Posts: 9708
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
If you see the keywords list, the keywords are not very tough to remember. In fact I think you'll not need to remember them, they are used in daily programming so we remember them without any special efforts. You might get a question that uses an identifier like goto or const (which are unused keyword so people don't remember them). The SCJP exam is very tricky, so the best way to get high score is to give a LOT of mock exams. That way you'll know almost all of the traps that the exam might try to catch you into. (I'm sure you noticed the keywords try and catch in my last sentence )
 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey by the way what is strictfp, transient, and volatile?
 
Ranch Hand
Posts: 257
Hibernate Oracle Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
strictfp, transient, and volatile are java keywords and their sense is as mentioned below

transient - This keyword is used to avoid the persistence of any variable during the serialization. You might find the detailed explanation here

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic