Programming - Packages
You Are Here :: Home > JAVA > Packages - General Questions
1.
Collection of classes,interfaces and subpackages is called as___________________.
A.
Abstract classes
B.
Packages
C.
Methods
D.
Interface
Answer: Option B
Explanation:
Packages concept always makes us to understand how to reuse the features both with in the pgms and across the pgms between class to class,interfaces to interfaces,interfaces to classes.
2.
API is a collection of __________________.
A.
Packages
B.
Methods
C.
Classes
D.
Variables
Answer: Option A
Explanation:
In Java programming,we have to use 3 types of packages,they are Predefined packages,Userdefined packages,Thirdparty packages.
3.
What is the use of Packages?
A.
Reuse the features with in the programme
B.
Reuse the features with in & with out the pgm
C.
Reuse the features with out the progrmme only
D.
both a and b
Answer: Option B
Explanation:
Predefined packages are supplied as a part of JDK to deals with the Universal requirements.
4.
In Java programming,we have to use how many types of Packages?
A.
Two
B.
Three
C.
Four
D.
One
Answer: Option B
Explanation:
In Java programming,we have to use 3 types of packages,they are Predefined packages,Userdefined packages,Thirdparty packages.
5.
Predefined packages are deals with the_____________.
A.
Common requirements
B.
Universal requirements
C.
both a and b
D.
all the above
Answer: Option B
Explanation:
Predefined packages are supplied as a part of JDK to deals with the Universal requirements.
6.
Userdefined packages are deals with the_____________.
A.
Universal requirements
B.
Common requirements
C.
Thirdparty requirements
D.
none
Answer: Option B
Explanation:
Userdefined packages are supplied as a part of their project to deals with the Common requirements.
next »