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.
Which of the following will produce a value of 22 if x=22.9:
Which of the following will produce a value of 10 if x = 9.7?
The import statement is always the first no comment statement in a Java program files.
Which of the following are not keywords?
Which of the following command lines options generates documentation for all classes and methods?
Which of the following methods can be used to change the size of a size() *resize()
Which of the following statements are true?
Every method of a final in class is implicitly final.
A panel can not be added to another panel.
All methods in an abstract class must be declared abstract.
The length of a string object 's1' can be obtained using the expression s1.length.
The check box group class is a subclass of the component class.
An EJB is a server-side component that encapsulates the business logic of an application
A method declared as static can not access non-static class members.
Give file is a file object, which of the following are legal statements to create a new file.
The concept of multiple inheritance is implemented in Java by
Frames and applets cannot be used together in the same program.
EJBs can be of the following type(s)None of the above
In RMI before running the client program we must start RMI Registry.
class.forName(...) creates an instance of java ODBC driver
One the features of is that an array can store many different types of values.
When present, package must be the first no comment statement in the file.
The methods wait() and noify() are defined in
Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
Which of the following methods can be used to draw the outline of a square?
Which of the following are keywords?
Which of the following methods can be used to remove a component from the display?
Objects are passed to a method by use of call-by-reference.
It is an error to catch the same type of exception in two different catch blocks associated with a particular…
Which of the following string can be used as mode string for creating a RandomAccessFile object?
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter