Easy Tutorial
For Competitive Exams
Java Programming Packages Page: 2
1572.Which of these keywords is used by a class to use an interface defined previously?
import
Import
implements
Implements
1573.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
1574.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.
1575.Which of the following package stores all the standard java classes?
lang
java
util
java.packages
1576.interface is used to achieve
single inheritance
mutiple inheritance
Hierarchical inheritance
hybrid inheritance
Share with Friends