Leon Chen

Greenhorn
+ Follow
since Feb 26, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Leon Chen

Hi,

According to "K & B, SCJP 5 - Errata: Updated 7/28/06"
https://coderanch.com/t/257589/java-programmer-SCJP/certification/SCJP-Errata-Updated


.62.*..bug.......After first code s/b: ...of the enum declaration, when no other declarations for this enum follow



I am not sure under what situation, the semicolon is required.
Could anyone kindly provide an example by modifying the code in P.62?
Thanks!



[ February 19, 2007: Message edited by: Leon Chen ]
[ February 19, 2007: Message edited by: Leon Chen ]
Hi,
I am studying the book K&B Java 5.
I don't really understand this:

Chapter 4: Operators
p.300
Increment/Decremnt Operators (Objective 7.6)
...
*In any expression, both operands are fully evaulated before the operator is applied.

What does it mean? is the operator increment/decremnt operator ?
Could you give me an example to help me understand?

Thank you!
Thanks for Sudha's reply, but I agree with Marc's opinion:


... if all you're doing is changing the implementation in a subclass, then you're overriding.



Inheritence seemed not to be the 'key' concept that underlines overloading.

ps. Thanks for Marc's advice, I have changed my name.
As for K&B, I mean 'Kathy Sierra' and 'Bert Bates'
Hi,
Acoording to K&B book
[Sun Certified Programmer for Java 5 Study Guide]
p.153

"Inheritance is a key concept that underlies IS-A, polymorphism, overriding,
overloading, and casting."

I am not sure ineritance is the key concept that underlies overloading.
Is it?

Thanks!