Question 6
Answer : (1) S1 and S2 only
6. In Java, which of the following statements is/are True ?
S1 : The ‘final’ keyword applied to a class definition prevents the class from being extended through derivation.
S2 : A class can only inherit one class but can implement multiple interfaces.
S3 : Java permits a class to replace the implementation of a method that it has inherited. It is called method overloading.
Code :S1 : The ‘final’ keyword applied to a class definition prevents the class from being extended through derivation.
S2 : A class can only inherit one class but can implement multiple interfaces.
S3 : Java permits a class to replace the implementation of a method that it has inherited. It is called method overloading.
Answer : (1) S1 and S2 only
Previous | Next |
UGC-NET CS 2018 July - II Question 5 | UGC NET CS 2018 July - II Question 7 |
Statements S1 and S2 are True statements
So, Option (1) is correct answer.