ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
what is real-time example of runtime polymorphism and 
compile time polymorphism
 Question Submitted By :: Swapna.gorentla
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is real-time example of runtime polymorphism and compile time polymorphism
Answer
# 1
Run time polymorphism: Bank Account, savings and current
(here, acoount class is the base class, savings and current
account are derived classes, the objects of each are created
at runtime)

Compile time polymorphism: calculating area of square and
rectangle (different classes, square and rectangle have a 
function called area() which takes different arguments (for
square only one argument and for rectangle two arguments-) )
 
Is This Answer Correct ?    2 Yes 0 No
Rushugroup
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
How to sort the elements in HashMap Ness-Technologies3
What is unicode?  1
What is the Vector class?  3
Name the class that used to read objects directly from a stream? Wipro2
can we add two numbers without using arthematic operators? if possible how?  2
Java violates few objected oriented concepts. Can you explain in what way? Ness-Technologies3
Sample code to retrieve objects from HashMap in sorted ascending order?  1
How to convert String into primitive datatype.  4
Can a double value be cast to a byte?  3
Hi Friends, I am new to java. Can u explain about thread concept.How i know one thread is locked, and how can i force or acquire another thread for lock . Finally how to know thread is released from lock. Explain types of lock(like method level and block level) in thread.  1
Can an exception be rethrown? Wipro4
Inorder to specify a container?s layout, which method is used?  1
What method is used to compare two strings ?  4
What is anonymous class?  2
whats the life cycle of jsp Satyam2
We can write any Java Logics in our JSP. Then why we are using servlets(Controller Layer) to interact with the DAO ? TCS2
What are the steps to do connection pooling in weblogic? TCS1
What is the purpose of having the concept of overloading? Ness-Technologies5
what is request processor? Virtusa1
when i write string s1="java"; in one program(application) and string s2="java"; in another application on the same jvm will both objects s2,s2 will refer to same memory location where "java" is stored in string pool.  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com