what is overloading and overriding with example?
Answer Posted / rajesh r
OVERLOADING MEANS SAME METHOD NAME WITH DIFFERENT
PARAMETERS.
BOTH SHOULD BE DEFINED IN SAME CLASS ITSELF.
OVERRIDING MEANS SAME METHOD NAME WITH SAME PARAMETERS.THIS
CAN ASSOCIATED IN A CLASS AND ITS SUBCLASS.(VIRTUAL,
OVERRIDE)
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain about varargs in java?
Q1.A. Write note on “The class path Environment Variable”? B. Which are different kinds of source code? Q2.A. How to create an interface? B. Why convert an applet to an application? Q3.A. How to use Media tracker Class. B. How to use string tokenizer class. Q4 A. Explain the overview of UDP messaging. B. Difference between SQL Exception class and SQL Warning class. Q5. A. How to create com object in Java? B. Write short notes on “The properties class” Q6. A. When object is created and destroyed? B. Explain the JDB in depth & command line. C. Write short notes on Web Sites.
Can we define package statement after import statement in java?
Write a program to reverse array in place?
When object is created and destroyed?
Are there structures in java?
What is the difference between static class and normal class?
What are the types of exceptions?
what is the purpose of the runtime class?
What is skeleton and stub?
What language is an assembler written in?
Does importing a package imports its sub-packages as well in java?
What do you mean by access modifier?
Why runnable interface is used in java?
What are the types of web technologies?