No ! Methods
cannot have different return type.
What is OOPS(Object Oriented Programming)?
What is the difference between procedural and object-oriented programs?
What is the difference between Assignment and Initialization?
What is OOPS(Object-Oriented Programming) principle?
What is encapsulation principle?
Explain the Inheritance principle.
Explain the Polymorphism principle.
Explain the different forms of Polymorphism.
What are Class, Constructor and Primitive data types?
What is an Object and how do you allocate memory to it?
What is the difference between constructor and method?
What are methods and how are they defined?
What is the use of bin and lib in JDK?
What is casting?
How many ways can an argument be passed to a subroutine and explain them?
What is the difference between an argument and a parameter?
What are Access Specifiers available in Java?
Describe the wrapper classes in Java.
What is the class variables ?
Why there are no global variables in Java?
What is the difference between class variable, member variable and automatic(local) variable
When are static and non static variables of the class initialized?
When are automatic variable initialized?
What is method Overriding?
What restrictions are placed on method overriding?
What is Method overloading?
What restrictions are placed on method overloading?
What is the difference between Overloading and Overriding?
Can overriding methods have different return types?
Can constructors be overloaded?
If you use super() or this() in a constructor where you us it in the constructor?