wood burning stoves*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Tript/traps for SCJP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Tript/traps for SCJP" Watch "Tript/traps for SCJP" New topic
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: 6662
    
    5

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 - More SCJP Mocks
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tript/traps for SCJP