Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What nonaccess modifiers are covered in the exam?

 
Ed Cardenas
Ranch Hand
Posts: 43
1
Chrome IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the book of Mala Gupta, only abstract, final, and static are covered.
Is that true?
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't take the exam, so this answer is still some kind of an educated guess (or gamble if you will ). The exam topics are also not conclusive on this issue (because non-access modifiers are not mentioned).

Let's start with an overview of the non-access modifiers:
  • static
  • abstract
  • final
  • synchronized
  • volatile
  • transient
  • native
  • strictfp


  • Modifiers static, abstract and final are covered in the book. synchronized and volatile are thread related keywords (that's an OCPJP7 topic). The keyword transient is used with object (de)serialization (that's not even an OCPJP7 topic anymore). When the method implementation is defined in another language than Java, you use the native keyword (again not on the OCAJP7 exam). Finally strictfp, it's used when you want floating point calculations in some class or method to adhere a specific standard (IEEE 754).

    So just covering static, abstract and final makes sense

    Hope it helps!
     
    Ed Cardenas
    Ranch Hand
    Posts: 43
    1
    Chrome IntelliJ IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Good point.

    Maybe the best option for me is to review the other nonaccess modifier.
     
    Roel De Nijs
    Sheriff
    Posts: 10662
    144
    AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Ed Cardenas wrote:Maybe the best option for me is to review the other nonaccess modifier.

    That's up to you of course. If you feel more confident with reviewing the non-access modifiers I would say (to quote a sports brand): just do it!

    I think you'll be just fine if you are able to know these modifiers (so you know these can not be used as identifiers) and just know for what purpose they are used. So that's actually the paragraph after the non-access modifiers. Coincidence? I don't think so
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic