CoreJava - Surprise Test Question - Paper1
CoreJava - Surprise Test Question - Paper1
5 Which of these is an interface for control over serialization Serializable Externalization FileFilter ObjectInput Choice 2
and deserialization?
6 Which of these classes extend InputStream class? ObjectStream ObjectInputStream ObjectOutput ObjectInput Choice 2
8 How will you sort an array of int? Use Collections.sort() By implementing By implementing Choice 1
Use Arrays.sort() Comparator Comparable
Which among the following collection classes is best suited
9 for implementing a stack without worrying about Vector TreeSet TreeMap ArrayList Choice 4
synchronization?
If an access
A static method in a class is accessible modifier is not
Abstract classes cannot static methods cannot specified
10 Which of the following is NOT true regarding static methods? from within all the member methods Choice 2
of that class have static methods use super keyword on a static method,
it cannot be
accessed from
13
14
15
16
17
18
19
20
21
22
23
24
25
Note : Use Paste Special for copying the data
Choice 1
Choice 2
Choice 3
Choice 4