Multiple Choice Questions (MCQs)
Java developed in ________
If we remove static from main then program _______
If we remove String array from main then program_______
What will happen if static modifier is removed from the signature of main method?
What will happen if main method is declared as private?
The toString () method returns a _________ representation of _______
A variable declared as static in a class is a/an _________
Which of the following is used for inheritance in java?
If a super class method is protected then overriding method _________
The collection API are defined in _______ package.
HahMap takes key as a/an _________
A collection can store _________
When defining a method you must include a ___________ to declare any exception that might be thrown but is not caught in the method.
Aside from the Scanner class, which of the following classes can be used for text-file input?
Which of the following package needs to be import while handling files?
Which of the following stream is a Node stream?
Which of the following syntax is used to attach an input stream to console?
Based on functionality, the streams can be categorized as ________
Which of the following stream read/write data in the form of bytes?
Which of the following syntax attaches an output stream to console?
An instance of abstract class cannot be created.
Which of the following is called "pure abstract class"?
The relationship between class and interface is called __________.
JPanel and Applet use _________ as their default layout.
Which of the following is a top level container?
Which of the following function will be used to register event handler with events generator (button)?
If a class needs to handle events generated by button then which of the following interface a class needs to implement?
WindowListener interface contains __________ methods.
Java defines _________ for the listener interfaces having more than one event handling methods.
Which of the following statement object is used to execute stored procedures?
Which of the following statement object is used to execute simple SQL statement?
previous() is a method of __________ object.
Which of the following is NOT a method of ResultSet object?
isReadOnly() is a method of _________ object.
Which of the following syntax is used to get ResultSetMetaData object?
Which of the following object is passed as an argument to paintComponent() method?
Which of the following methods are invoked by the AWT to support paint and repaint operations?
Select a course code for Objective Questions:
Select a course code for Subjective Questions: