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

Answer Posted / gt

in java 1.5 on words posible co-varient data types
we can use this

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What function extracts specified characters from a string?

567


What is difference between static class and normal class?

533


Is void a return type?

555


Why collection doesn’t extend cloneable and serializable interfaces?

646


What is http client in java?

523






How are destructors defined in java?

574


whatis Home interface and Remoteinterface? with example?

1552


Does substring create a new object?

530


How finally used under exception handling?

516


Does java support multiple inheritance or not?

605


Why we cannot override static method?

561


Can you explain the meaning of aggregation and composition

574


What is the function of http?

535


Convert Binary tree to linked list.

591


Why we override equals() method?

570