• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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!
 
World domination requires a hollowed out volcano with good submarine access. Tiny ads are optional.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic