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

Answer Posted / ravikiran

yes the program will execute

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the reason behind using constructors and destructors?

558


What is array and arraylist in java?

535


Can we use different return types for methods when overridden?

557


What do you mean by JVM?

593


Describe method overriding

589






How do you use parseint in java?

515


What is the integer of 16?

541


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

557


Program to Find the second largest element in an array.

591


Explain about wait() method?

571


What is the this keyword?

559


How to avoid memory leak in java?

601


What is widening and narrowing in java? Discuss with an example.

563


What is a treeset in java?

549


Can you explain the final method modifier?

571