Erevmax Technologies: in Association With
Erevmax Technologies: in Association With
in association with
InnoServ Solutions
Presents
TEST ON JAVA
Full Marks: 100 PASS MARKS: 50 TIME: 100 MIN NO OF QUESTIONS: 100
All Questions are mandatory .Figures in right margin indicate marks for each question. There is no
negative marking. Answers should be written on question paper for Section 1 and 2 only. Overwriting
of answers will be deemed as a malicious practice. Hence be sure before answering the questions in
the answer sheet. Practical project needs to be compressed and sent to designated email.
A) The class present in the java.util package used for taking input/output is called _______. [1]
B) The full form of JRE is _______________________________________________ and JVM is
___________________________. [2]
C) The content of any class file is called __________ code. [1]
D) To access parent class members, we use the ____________ keyword and to access current class
members, we use ________________ keyword. [2]
E) To use a package in a program we use the ___________________ keyword. [1]
F) To inherit a class, we use the _________ keyword and for an interface we use the ___________
keyword [2]
G) To find the length of an array we have to use the _____________ method [1]
H) The Oracle IDE used for doing java programs is called _______________ [1]
I) To access a package from anywhere we have to set the package path in the
_________________ environment variable. [1]
J) The ___________ method of Collections can sort an Array List [1]
K) The _______________ operator is used to check whether the object belongs to a specific class
or interface [1]
L) One interface can inherit another interface using the _______________ keyword. [1]
M) To stop inheritance of a class we can use the ____________ keyword before it. [1]
N) The __________ method is used to insert an element within a Map. [1]
O) The properties files which can store key/value pairs like Hash table has an extension called
_______________. [1]
P) The ______________ interface object can store all the keys of the Hash table object. [1]
Q) To change the format of display of a date we can use the _______________ class. [1]
R) The ____________ method of the File class check the existence of a particular file. [1]
S) The EOF character of any file is ___________. [1]
T) To connect to the Server the Socket class needs to know the ______________ and
_____________. [1]
U) We usually use the _____________ class for reading from a socket [1]
V) The ____________ method of System class forces a garbage collection. [1]
Create a using Net beans IDE called Erev<Yourname>(eg. If your name is “Raj” project name will be
“ErevRaj”). Create a package called coretest within it. Create an abstract class called Employee. It should
have a no-args constructor with a message “An employee has been appointed”. It should have the fields
of Name,age,designation and salary with data type of String,int,String and double respectively. It should
also possess a Finalize method with a message “An employee is retiring”. Create two interfaces Staff and
Officer. Staff interface should have the method inputDetails() and Officer interface with displayDetails()
declared within it. Make a class called Developer with which extends the Employee class and
implements the Staff and Officer interface and implement the required methods which will take
input/display of all the relevant information of the employee .Make a class called EntryDev with main
method in it. It should ask for number of employees for input( and you should min give 3). After giving
input for that number of employees, each employee should be given details using the inputDetails
method and then all the employees should be stored in an Arraylist which will be again stored in a file
called Developer.db. Make another class called DisplayDev which will have main method for reading the
Arraylist of Employees from the file and displaying details of the employee using the displayDetails
method. Remember to create all the classes and interfaces in separate files within the same package.
A) FULL NAME__________________________________.
B) EMPNO.__________________________________.
C) DESIGNATION:_______________________________.
MARKS OBTAINED:
INVIGILATOR:
DATE: