• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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!
 
this llama doesn't want your drama, he just wants this tiny ad for his mama
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic