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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
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 difference between method overloading & method
overridding with example?
 Question Submitted By :: Gopalraop
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is difference between method overloading & method overridding with example?
Answer
# 1
Overloading-->method with different signature
Overriding -->method with same signature
 
Is This Answer Correct ?    2 Yes 0 No
Dipesh
 
  Re: what is difference between method overloading & method overridding with example?
Answer
# 2
overloading:
method overloading means method name is same and different 
parameter ie different signature.. and overloading method 
are present in same class
for eg ,
       let us consider show() is a method
           1.show(int a)
            2.show(int a,int b)
overriding:
        method overriding means method name is same and 
parameter also same. these are present in different levels 
of class
for eg,
           let us consider show() is a method
           1.show(int a)
           2.show(int a)
 
Is This Answer Correct ?    8 Yes 0 No
Tamilvanan
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
When finalize method is called?  3
question on Thread synchronization Huawei1
Explain the difference between getAppletInfo and getParameterInfo?  1
where u use Abstraction and Interface in real time Sonata2
steps to connect with Oracle Databse using TYPE-2 Jdbc driver.  1
if arraylist size is increased from initial size what is the size of arraylist...suppose initial is 100 , if i add 101 element what is the size...  6
JSP is by default thread safe or not? what is the meaning of isThreadSafe="true" and isThreadSafe="false". Explain it? Thanks, Seenu Huawei3
how many access specifiers are available in java  5
What for read() function?  3
What is the minimum and maximum length of an identifier? TCS6
what is the Use of throws exception?  2
Explain the relationship between the Canvas and Graphics class?  1
What is the use of ?this??  4
What is an Exception ?  6
what is the difference b/w design pattern and architecture Covansys2
Can we inherit the constructor in a Class?please give one example. iGate3
What is Overriding and how can it be used? Wipro5
what is main purpose of interface? Accenture2
could you run the java program without main method?  3
How many ways can an argument be passed to a subroutine?  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