Question :What are the different ways in which polymorphism can be achieved in
java? (CoreJava)
Answer :Polymorphism can be acheived two ways
overloading - static binding/early binding
overriding - dynamic binding/late binding
In case of overloading the method to be called is decided at the compile
time based on the method signature.
In case of overriding the method to be called is decided at run time and
NOT at compile time. This is runtime polymorphism.
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Thursday, March 12, 2009
What are the different ways in which polymorphism can be achieved in
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment