Questions and Answers
Which keyword in Java is used to declare a class that cannot be extended?
final
Which of the following is true about method overloading in Java?
It allows you to provide multiple ways to call a method within the same class, based on different argument lists.
Which type of polymorphism is also known as method overriding?
Runtime polymorphism
What is the primary reason for static typing in programming languages?
Signup and view all the answers
What is the difference between static typing and dynamic typing?
Signup and view all the answers
Which one of these is NOT a main principle of Object-Oriented Programming (OOP)?
Signup and view all the answers
What is polymorphism in the context of OOP?
Signup and view all the answers
Which type of polymorphism is achieved through method overloading?
Signup and view all the answers
What is the purpose of the render() method in the context of polymorphism?
Signup and view all the answers
Which one of these is an example of method overriding in Java?
Signup and view all the answers
Which of the following best describes method overriding in Java?
Signup and view all the answers
What does the @Override annotation indicate in Java?
Signup and view all the answers
What is the main advantage of covariant return types in Java?
Signup and view all the answers
What is the purpose of method overloading in Java?
Signup and view all the answers
What is the method signature in Java?
Signup and view all the answers