Programming  Java  Package and Interface

1. Which of these keywords is used by a class to use an interface defined previously?

import Import implements Implements

2. Which of the following is correct way of implementing an interface salary by class manager?

class manager extends salary {} class manager implements salary {} class manager imports salary {} None of the mentione

3. Which of the following is incorrect statement about packages?

Interfaces specifies what class must do but not how it does. Interfaces are specified public if they are to be accessed by any code in the program. All variables in interface are implicitly final and stati All variables are static and methods are public if interface is defined pubic.

4. Which of the following package stores all the standard java classes?

lang java util java.packages

5. interface is used to achieve

single inheritance mutiple inheritance Hierarchical inheritance hybrid inheritance

 

*Click on the QNo to display a Question.

Total Ans

 

 

';
Aptitude Coaching - Free Live Session !!