The setBackground() method is part of the class
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
JSP files creates ________________
When we implement an interface method, it should be declared as public.
In order to connect to a database through java program we must create _______-
Which key word can protect a class in package from accessibility by the classes outside the package?
It is perfectly legal to assign a subclass object to a supper class reference.
Connection, Statement are interfaces and ResultSet is a class.
Throwing an exception always causes program termination.
We can add more than one class(es) at the time of compilation Java Beans.
A class may be both abstract and final.
Every method of a final in class is implicitly final.
class.forName(...) creates an instance of java ODBC driver
Which of the following classes are available in the java.lang package?
To delete a file, we can use an instance of class file.
Which are the valid ways to create DataInputStream streams?
Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
What is java -g used for?
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
A Java monitor must either extend thread class or implement Runnable interface.
With javadoc, which of the following denotes a javadoc comment?
DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
Which of the following statements are true?
Which of the following string can be used as mode string for creating a RandomAccessFile object?
The modulus operator (%) can be used only with Integer operands.
putValue(...) method takes _____________________-
The expression (x == y && a<b) is true If either x == y is true or a<b is true.
Which of the following methods can be used to draw the outline of a square?
Any method in a supper class can be over ridden in its subclass.
Which of the following methods can be used to remove a component from the display?
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter