Professional Documents
Culture Documents
No
1
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Question
When Overloading does not occur?
Which concept of Java is a way of converting real world objects in terms of class?
Which concept of Java is achieved by combining methods and attribute into a class?
What is it called where child object gets killed if parent object is killed?
An abstract data type typically comprises a …………… and a set of ……………… respectively.
Which of these is a class which uses String as a key to store the value in object?
What is the value returned by function compareTo() if the invoking string is greater than the string compared?
Which feature of java 8 enables us to create a work stealing thread pool using all available processors at its target?
a) Polymorphism
b) Encapsulation
c) Abstraction
d) Inheritance
a) Encapsulation
b) Inheritance
c) Polymorphism
d) Abstraction
a) Aggregation
b) Composition
c) Encapsulation
d) Association
a) True
b) false
a) Run Time
b) Compilation Time
c) Can Occur Any Time
d) None of the mentioned
a) try
b) finally
c) thrown
d) catch
a) 0
b) 05
c) Compilation Error
d) Runtime Error
a)Yes
B)No
c)Not Recommended
d)Compiletime Error
(a) int -5
(b) int -4
(c) double -5.0
(d) double -4.5
(e) None of the above.
(a) The operating system periodically deletes all the java files available on the system.
(b) Any package imported in a program and not used is automatically deleted.
(c) When all references to an object are gone, the memory used by the object is automatically reclaimed.
(d) The JVM checks the output of any Java program and deletes anything that doesn’t make sense.
(e) Janitors working for Sun Micro Systems are required to throw away any Microsoft documentation found in the employees’ offices.
a) By multithreading CPU idle time is minimized, and we can take maximum use of it
b) By multitasking CPU idle time is minimized, and we can take maximum use of it
c) Two thread in Java can have the same priority
d) A thread can exist only in two states, running and blocked
a) Thread[5,main]
b) Thread[main,5]
c) Thread[main,0]
d) Thread[main,5,main]
a) IOException
b) SystemException
c) SecurityException
d) RuntimeException
a) IOException
b) SystemException
c) ClassFormatError
d) ClassNotFoundException
a) Serialization
b) Externalization
c) File Filtering
d) Deserialization
a) Serialization
b) Memory allocation
c) Deserialization
d) All of the mentioned
a) \w
b) \W
c) \s
d) \S
a) Pattern class
b) Matcher class
c) PatternSyntaxException
d) None of the mentioned
a) Array
b) ArrayList
c) Dictionary
d) Properties
a) change()
b) set()
c) redo()
d) add()
a) zero
b) value less than zero
c) value greater than zero
d) none of the mentioned
a) 4 8
b) 5 9
c) 4 9
d) 5 8
a) String
b) Object
c) void
d) Function
a) workPool
b) newWorkStealingPool
c) threadPool
d) workThreadPool
a) Nashorn
b) V8
c) Inscript
d) Narcissus
a)Function
b)Class
c)Inheritence
d)Predicate
a)Filter
b)Map
c)forEach
d)Predicate
a) () -> {}
b) () -> “Raoul”
c) () -> {return “Mario”;}
d) (Integer i) -> return “Alan” + i;
a) PermSpace
b) PermSpaceGen
c) Metaspace
d) MetaGenSpace