Programming - Packages
You Are Here :: Home > JAVA > Packages - General Questions
13.
JEE and JME packages are starts with_____________.
A.
JavaX.Packname.*;
B.
Java.Packname.*;
C.
both a and b
D.
all the above
Answer: Option A
Explanation:
JEE and JME packages are starts with JavaX.Packname.*;
14.
What is the basic aim of JSE?
A.
Designing the GUI applications
B.
Providing lang functionalities
C.
Develop Distributed applications
D.
both a and b
Answer: Option B
Explanation:
The basic aim of JSE package is to provide lang functionalities (or) services to each and every Java programme.
15.
Group of similar type of values,different type of values and both type of values in a single variable is called as____________.
A.
Package
B.
Array
C.
Collection Framework
D.
Applet
Answer: Option C
Explanation:
Collection framework is to Group similar type of values,different type of values and both type of values in a single variable with in a dynamic size in nature.
16.
Which is the correct syntax of creating a package?
A.
Package pack1[pack2[----[pack-n]]];
B.
pack1[pack2[----[pack-n]]] package;
C.
both a and b
D.
none
Answer: Option A
Explanation:
Package pack1[pack2[----[pack-n]]]; is the correct syntax of creating the package.
17.
Placing any class (or) interface with in the package,the package statement must be written as a_____________.
A.
First executable statement
B.
Second executable statement
C.
both a and b
D.
none
Answer: Option A
Explanation:
When ever we are placing any class (or) interface with in the package,the package statement must be written as a first executable statement.
18.
What is import keyword?
A.
Creation will be done by package keyword
B.
Creation will be done by import keyword
C.
Classes and interfaces of a sprcified package
D.
both a and b
Answer: Option C
Explanation:
import is a keyword which is used for reffering classes and interfaces of a specified package.
« prev
next »