Win a copy of Getting started with Java on the Raspberry Pi this week in the Raspberry Pi forum!
  • 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Liutauras Vilda
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Piet Souris

Accesibility

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Need to write SCJP1.4 ASAP.
Just wanted to make sure this list..
top level class -public, default, final
nested/inner class - default, public, protected, static
methods- public, private, protected, default, native, synchronized, static, abstract, final
variables - public, private, protected, default, final, transient, volatile
construtors - public, protected, private, default, static
free floating blocks - static
Did i miss anything??
[ November 12, 2003: Message edited by: KATE MOORE ]
 
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by KATE MOORE:
Need to write SCJP1.4 ASAP.
Just wanted to make sure this list..
top level class -public, default, final
nested/inner class - default, public, protected, static
methods- public, private, protected, default, native, synchronized, static, abstract, final
variables - public, private, protected, default, final, transient, volatile
construtors - public, protected, private, default, static
free floating blocks - static
Did i missed anything??


Don't forget, default is an "imaginary" access modifier, you don't write it explicitly.
Top level classes can also accept non-access modifiers strictfp or abstract.
Inner and nested classes can be private, unless they are method local inner classes. In this case, only abstract, final, and strictfp can apply (never both final and abstract, of course ) Methods can be strictfp just like classes.
Constructors can never be static - it makes no sense.
Just a piece of advise: make sure you're comfortable with the possible combinations of modifiers and what each combination implies.
Good luck on the exam!
 
KATE MOORE
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx Vad.
 
KATE MOORE
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx Vad.
 
Ranch Hand
Posts: 787
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Free floating bocks can be non-static as well.
 
Vad Fogel
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They aren't on the exam though!
 
Blueberry pie is best when it is firm and you can hold in your hand. Smell it. And smell this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic