• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

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!
 
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic