In method overloading ,if i change the return type to Long
instead of INT,is the program execute

Answer Posted / siva thimmannagari

it wont execute

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an argument in java?

521


What is a lambda expression ? What's its use ?

573


How to create a custom exception?

584


What is the purpose of static methods and variables?

535


What is the purpose of return statement?

635






How can we run a java program without making any object?

552


What are the different types of constructor?

534


What is void data type?

587


Differentiate storage classes on the basis of their scope?

680


What happens if main method is not static?

505


Explain where variables are created in memory?

594


we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

1579


What is the indent key?

594


What invokes a thread's run() method in java programming?

575


What is difference between filereader and bufferedreader?

539