Which of the following control expressions are valid for an if statement?
an integer expression
a Boolean expression
either A or B
Neither A or B
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
A final class may not have any abstract method.
Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
The concept of multiple inheritance is implemented in Java by
A JSP file can be stored_________________
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
All methods in an abstract class must be declared abstract.
EJBs can be of the following type(s)None of the above
When present, package must be the first no comment statement in the file.
Which exception is thrown by the read() method of InputStream class?
We would like to make a member of a class visible in all subclasses regardless of what package they…
Which of the following are the wrapper classes?
Which of the following will produce a value of 22 if x=22.9:
Java is fully object oriented programme.
JSP files creates ________________
What does the following line of code do?TextField text=new TextField(10);
The check box group class is a subclass of the component class.
When we implement an interface method, it should be declared as public.
A method declared as static can not access non-static class members.
A static class method can be invoked by simply using the name of the method alone.
When we implement the Runnable interface, we must define the method
The setBackground() method is part of the class
When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
Which of the following methods can be used to draw the outline of a square?
The break statement is required in the default case of a switch selection structure.
Connection, Statement are interfaces and ResultSet is a class.
A string object can not be modified after it is created.
The keywords reserved but not used in the initial version of Java re:
When the string objects are compared with ==, the result is true If the strings contain the same values.
Members of a class specified as private are accessible only to the methods of the class.
It is an error to have a method with the same signature in both the super class and its subclass.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter