CS506-Midterm
1 / 50
The collections API are defined in ______ package?
2 / 50
A top level class may have only the following access modifier.
3 / 50
Which of the following is called ' pure abstract class ' ?
4 / 50
HahMap takes key as a/an _________
5 / 50
Which of the following stream is a filter stream?
6 / 50
Given a one dimensional array arr, what is the correct way of getting the number of elements in arr
7 / 50
Event source can have --------- listeners registered on it.
8 / 50
In Java, which of these classes implement the LayoutManager interface?
9 / 50
Exceptions must be handled while handling files otherwise it may lead to _____
10 / 50
When defining a method you must include a ___________ to declare any exception that might be thrown but is not caught in the method.
11 / 50
When recursive method is called to solve a problem, the method actually is capable of solving only the simpler case(s), or base case(s).
12 / 50
Which of the following function will be used to register event handler with events generator (button)?
13 / 50
14 / 50
Mouse events can be trapped for ________ GUI component.
15 / 50
BorderLayout is the default layout manager for a JFrame content pane
16 / 50
A top level class without any modifier is accessible to
17 / 50
Which of the following feature provide facility for multiple inheritances:-
18 / 50
Which of the following method is used to execute INSERT, UPDATE and Delete SQL statements?
19 / 50
Which of the following is true about abstract class?
20 / 50
What if the main method is declared as private?
21 / 50
Which of following can be thrown using the throw statement?
22 / 50
DSN stands for _________
23 / 50
Java program code is compiled into form called
24 / 50
Window frame and dialog use ________ as their default layout.
25 / 50
26 / 50
Exceptions must be handled while handling files otherwise it may lead to____?
27 / 50
28 / 50
Socket is a --------------communication channel between hosts.
29 / 50
Which of the following is used for inheritance in java?
30 / 50
31 / 50
Java developed in __________
32 / 50
If we remove static from main then program __________
33 / 50
JavaBeans are?
34 / 50
Which of the following are passed as an argument to the paint ( ) method?
35 / 50
An expression tag contains a scripting language expression that is evaluated.
36 / 50
37 / 50
You can ---------to a network using sockets.
38 / 50
You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?
39 / 50
40 / 50
An abstract class ---------------instantiated.
41 / 50
A serializable class must implement the method(s) _________.
42 / 50
Which of the following statement object is used to execute stored procedures?
43 / 50
Which of the following syntax is used to attach an input stream to console?
44 / 50
An abstract class --------------- instantiated.
45 / 50
The classes which contain the word _____ are byte oriented streams.
46 / 50
JPanel and Applet use ________ as their default layout.
47 / 50
Which of the following are passed as an argument to the paint () method:
48 / 50
49 / 50
In Java an abstract class cannot be sub-classed
50 / 50
Which of the following method is used to execute SELECT SQL statements?
Your score is
The average score is 32%
Restart quiz