Can methods be overloaded based on the return types ?

A method cannot be overloaded on the bases of return types because the compiler will check only the method signature( name of the method and the arguments).

So a method cannot be overloaded on the bases of return types.

More interview questions and answers
Does C# has its own class library?
IS it possible to have different access modifiers on the get/set methods of a property?
IS it possible to have different access modifiers on the get/set methods of a property?
Is there an equivalent of exit() or quiting a C#.NET application?
Is there an equivalent of exit() or quiting a C#.NET application?
What optimization does the C# compiler perform when you use the optimize and compiler option?
What optimization does the C# compiler perform when you use the optimize & compiler option?
Is goto statement supported in C#?
IS goto statement supported in C#?How about Java?
What happens when you encounter a continue statement inside for loop?
Write one code example for compile time binding and one for run time binding.
Write one code example for compile time binding and one for run time binding.
What is output of following program when we compile and run it? void main() { int const * p=5; printf("%d",++(*p)); }
What is output of followingvoid main(){char ch;for(ch=0;ch<=127;ch )printf("%c %d \n", ch, ch);}
Is this code legal? int *ptr; ptr = (int *) 0x400;
What is output of following? main() { char s[ ]="man"; int i; for(i=0;s[ i ];i++) printf("\n%c%c%c%c",s[ i ],*(s+i),*(i+s),i[s]); }
What is output of following?? main() { float f1 = 1.0; double f2 = 1.0; if(f1==f2) printf("I love U"); else printf("I hate U"); }
What is output of following main() { char a[4]="HELLO"; printf("%s",a); }
What is output of following? main() { char a[4]="HELL"; printf("%s",a); }
What is output of following? main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("\n %u %u ",j,k); }
What values are printed when we run following? main() { static int var = 5; printf("%d ",var--); if(var) main(); }
how to print this : 1 11 121 1331 14641 using for loop?
What is the difference between == & .equals().
What is the difference between abstract class & Interface.
What is singleton class & how you can implementation it?.
What is use of static, final variable?
Examples of final class.
What is difference between Event propagation & Event delegation?
What is difference between Unicast & Multicast model?
What is a java bean?
What is use of synchronized keyword?
What are the restrictions of an applet & how to make the applet access the local machines resources?
What is reflect package used for & the methods of it?
What is use of serialization?
Can methods be overloaded based on the return types ?
What should you do get your browser compatible with swing components?
What are the methods in Applet ?
When is init(),start() called ?
When you navigate from one applet to another what are the methods called?
What is the difference between Trusted and Untrusted Applet ?
What is Exception ?
What are the ways you can handle exception ?
When is try, catch block used ?
What is finally method in Exceptions ?
What are the types of access modifiers ?
What are the other modifiers ?
Is synchronized modifier ?
What is inheritance ?
What is method Overloading ? What is this in OOPS ?
What is method Overriding ? What is it in OOPS ?
Does java support multi dimensional arrays ?
Is multiple inheritance used in Java ?
How do you send a message to the browser in JavaScript ?
Does JavaScript support multidimensional arrays ?
Does JavaScript support multidimensional arrays ?
Is there any tool in java that can create reports ?
What is meant by Java ?
What is meant by a class ?
What is meant by a method ?
What are the OOPS concepts in Java ?
What is meant by inheritance ? Explain with an example.
What is meant by polymorphism ? Explain with an example.
Is multiple inheritance allowed in Java ? Why ?
What is meant by Java interpreter ?
What is meant by JVM ?
What is a compilation unit ?
What is meant by identifiers ?
What are the different types of modifiers ?
What are the access modifiers in Java ?
What are the primitive data types in Java ?
What is meant by static variable and static method ?
What is meant by Garbage collection ?
What is meant by abstract class
What is meant by final class, methods and variables ?
What is meant by a resource leak ?
What is meant by a resource leak ?
What is the difference between interface and abstract class ?
What is the difference between public private, protected and static?
What is meant by method overriding ?
What is singleton class ?
What is the difference between an array and a vector ?
What is meant by constructor ?
What is meant by casting ?
What is the difference between final, finally and finalize ?
What is meant by packages ?
What are all the packages ?
Name 2 calsses you have used ?
Name 2 classes that can store arbitrary number of objects ?
What is the difference between java.applet.* and java.applet.Applet ?
What is a default package ?
What is anonymous class ?
Name interfaces without a method ?
What is the use of an interface ?
What is a serializable interface ?
How to prevent field from serialization ?
What is meant by exception ?
How can you avoid the runtime exception ?
What is the difference between throw and throws ?
Can multiple catch statements be used in exceptions ?
Is it possible to write a try within a try statement ?