| Author |
Tript/traps for SCJP
|
shuba gopal
Ranch Hand
Joined: May 12, 2011
Posts: 76
|
|
"Watch for Math class being an option for immutable classes"
What are immutable classes? Final classes?
|
 |
Ikpefua Jacob-Obinyan
Ranch Hand
Joined: Aug 31, 2010
Posts: 394
|
|
shuba gopal wrote:"Watch for Math class being an option for immutable classes"
Hello Shuba, the API indicates that Math class is a final class, meaning you have to abide by the regulations...The Dos and Donts of a final class, for example they CANNOT be subclassed, the exam creators will NOT set a "Trip-Trap" for you on wrapper classes or Strings because its easy for you to notice the "Trap"...
HtH
Ikpefua
|
OCPJP 6.
In Your Pursuit Towards Certification, NEVER Give Up.
|
 |
shuba gopal
Ranch Hand
Joined: May 12, 2011
Posts: 76
|
|
Thanks
|
 |
Deepak Bala
Bartender
Joined: Feb 24, 2006
Posts: 6588
|
|
The Math class is not part of the SCJP.
Marking a class final does not make it immutable. This wiki article is a good starting point to learn about immutability - http://en.wikipedia.org/wiki/Immutable_object
|
SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
|
 |
Ikpefua Jacob-Obinyan
Ranch Hand
Joined: Aug 31, 2010
Posts: 394
|
|
Deepak Bala wrote:The Math class is not part of the SCJP.
Hello Deepak...I didnt know that..Thank you for the information.
Regards
Ikpefua
|
 |
 |
|
|
subject: Tript/traps for SCJP
|
|
|