CS506-Midterm
1 / 50
All the exceptions and errors in java are inherited from _____ class.
2 / 50
If a super class method is protected then overriding method _________
3 / 50
The relationship between class and interface is called ________
4 / 50
In Java garbage collection is done by_______________
5 / 50
Which of the following is called ' pure abstract class ' ?
6 / 50
A top level class may have only the following access modifier.
7 / 50
Which of the following are passed as an argument to the paint ( ) method?
8 / 50
Which of the following exception belongs to a category of un-checked exception?
9 / 50
JPanel and Applet use ________ as their default layout.
10 / 50
To create DataBaseMetaData object we write following line of code
11 / 50
What if the static modifier is removed from the signature of the main method?
12 / 50
HahMap takes key as a/an _________
13 / 50
In Java an abstract class cannot be sub-classed
14 / 50
Which of the following statement object is used to execute stored procedures?
15 / 50
If we remove static from main then program __________
16 / 50
Which of the following stream is a filter stream?
17 / 50
There are _________ types of exceptions in Java
18 / 50
Which of the following methods are invoked by the AWT to support paint and repaint operations?
19 / 50
____________is/are the JSP Implicit Object(s).
20 / 50
An abstract class ---------------instantiated.
21 / 50
In Java a final class must be sub-classed before it.
22 / 50
Window Listener interface contains _______ methods.
23 / 50
An abstract class --------------- instantiated.
24 / 50
A top level class without any modifier is accessible to
25 / 50
26 / 50
Which of the following is true about AWT and SWING components?
27 / 50
Which of the following is used for inheritance in java?
28 / 50
Exceptions must be handled while handling files otherwise it may lead to _____
29 / 50
A serializable class must implement the method(s) _________.
30 / 50
Which of the following is a general purpose container?
31 / 50
ServletConfig defines a set of methods that a servlet uses to communicate with its servlet container.
32 / 50
What if the main method is declared as private?
33 / 50
34 / 50
Event source can have --------- listeners registered on it.
35 / 50
36 / 50
37 / 50
A collection can store..........
38 / 50
Aside from the Scanner class, which of the following class/es can be used for text file file input
39 / 50
40 / 50
41 / 50
A ................defines the way and method of communication between two parties
42 / 50
Which of these are valid declarations for the main method?
43 / 50
44 / 50
You can ---------to a network using sockets.
45 / 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).
46 / 50
Which of the following package needs to import while interacting with relational database?
47 / 50
48 / 50
Overloading is _______ whereas overriding is _____
49 / 50
50 / 50
When defining a method you must include a ___________ to declare any exception that might be thrown but is not caught in the method.
Your score is
The average score is 32%
Restart quiz