This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes polymorphism Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "polymorphism" Watch "polymorphism" New topic
Author

polymorphism

adam Lui
Ranch Hand

Joined: Sep 03, 2007
Posts: 186
polymorphism allows a variable of the superclass to refer to an object of the subclass.

wats the benefit?
how do we practically use it?
Does this topic occupy big part in the exam?


boolean b = true;<br />System.out.println ("I believe in Java.<br />Java will make my dream come " + b);
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Yes, polymorphism is a very important topic. See How my dog learned polymorphism to see why.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: polymorphism
 
Similar Threads
polymorphism
polymorphism
4 key points about Oops
Method Overloading and overriding
OOP-4 hints please.