• 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

What nonaccess modifiers are covered in the exam?

 
Ranch Hand
Posts: 43
1
IntelliJ IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to the book of Mala Gupta, only abstract, final, and static are covered.
Is that true?
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    IntelliJ IDE Chrome Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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: 11604
    178
    Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
    • Likes 1
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    reply
      Bookmark Topic Watch Topic
    • New Topic