Our website is made possible by displaying online advertisements to our visitors.Please consider supporting us by disabling your ad blocker.
Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu
Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Translate it in your own Language

Print this Job Post

Print Friendly and PDF

Monday, May 26, 2014

Core Java – OOPs Concepts: Method Overloading Interview Questions

Question-37: What is method overloading?
Answer:
If a class have multiple methods by same name but different parameters, it is known as Method Overloading. It increases the readability of the program.


Question-38: Why method overloading is not possible by changing the return type in java?
Answer:
Because of ambiguity


Question-39: Can we overload main() method?
Answer:
Yes, of-course! You can have many main() methods in a class by overloading the main method.

Core Java – OOPs Concepts: Method Overriding Interview Questions




No comments:

Post a Comment

Copyright @ CrackMNC 2014-2024
Divas Nikhra Theme by Crack MNC