• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Regarding objective 5.3-SCJP 5.0

 
Ranch Hand
Posts: 186
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear friends,

When i was listing down the objectives from Kathy Sierra's SCJP 5 book i can't find the Objective 5.3 even after searching the whole book.
Does objective 5.3 combine with any other objective?

There are only two places i find objective 5.3 i.e. in Chapter 2 (Page 165 & 167)

Kindly help me regarding this because i may not checked properly.

Thank you very much in advance,
Vijay
 
Ranch Hand
Posts: 1274
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy Vijay,

in the current site of the objectives from Sun the objectives aren't numbered like in the K&B book.
But I guess you meant this:

(quote from sun's site) Explain the effect of modifiers on inheritance with respect to constructors, instance or static variables, and instance or static methods.



You are right, this point is not cited explicitely in K&B.

constructors:
allowed are all access modifiers (public, protected, and private)
from language spec. � 8.8.3:
"Unlike methods, a constructor cannot be abstract, static, final, native, strictfp, or synchronized."
inheritance 1: constructors are not inherited
inheritance 2: calls to methods from constructors are polymorph.

methods: see above ("unlike methods")
inheritance:
abstract XOR final: ... You all know that probably.
access modifiers:
private: not inherited
others: inherited.
Method calls are always polymorph.
Again: You all know that (I'm quite sure).


Generally speaking all the non-access modifiers turn up in the first chapter one of K&B (page 39: Nonaccess Modifiers).
And all the other stuff related to this objective should be there in chapters one or two.



If you have any questions / doubts about anything of these, post it right here.


Hope I could help (though I'm really not sure)!

Yours,
Bu.
 
Vijay Chandran
Ranch Hand
Posts: 186
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Burkhard,

Thank you very much for the information provided.

Cheers & Regards,
Vijay
 
I'm sure glad that he's gone. Now I can read this tiny ad in peace!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic