Java - Online Test - Overloading -


Search Java Test Questions

 223 test questions in repository.

Java - Test Questions on 'Overloading' - 3 questions found

The following code is an example of

public class Car extends Vehicle{
   int x;

   Car(int y){
      x = 5;

Core Java
Constructor Overloading
Constructor Chaining
Both Constructor Overloading and Chaining
None of above

  constructor  constructor overloading  constructor chaining

Which of following cannot be overloaded ?Core Java
Main Method
Final Methods
All of above can be overloaded


Which of the following can be overridden ?Core Java
final instance methods
final static methods
non final instance methods
non final static methods


comments powered by Disqus