Difference between overloading and Overriding. <Giving a
confusing example to test the concept.>
(also asked in PA Consultancy Group,iflex,Value
chain,IBM,CTS,Accenture, Tarang>
Answer Posted / mariyappan
overloading is the process of defining the same function
with different parameters.which can be defined within class.
overriding is the process of defining the function name in
the more than one classes.
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the purpose class.forname method?
a thread is runnable, how does that work? : Java thread
Does substring start with 0?
Can we make main() thread as daemon?
Explain the use of volatile field modifier?
Can I declare class as static or private?
When should you use arraylist and when should you use linkedlist?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
What is tostring () method?
What are the 8 primitive data types in java?
What is the meaning of 3 dots in java?
Explain hashset and its features?
Why string is not a wrapper class?
Is minecraft java edition free?
Is constructor inherited?