Open In App

UGC-NET | UGC NET CS 2018 July – II | Question 6

Like Article
Like
Save
Share
Report

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:
(A) S1 and S2 only
(B) S1 and S3 only
(C) S2 and S3 only
(D) All of S1, S2 and S3


Answer: (A)

Explanation:

Quiz of this Question
Please comment below if you find anything wrong in the above post


Last Updated : 04 Sep, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads