Which of the following will produce a value of 22 if x=22.9:
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 control expressions are valid for an if statement?
A variable declared inside the for loop control can not be referenced out side the loop.
In order to connect to a database through java program we must create _______-
Which of the following string can be used as mode string for creating a RandomAccessFile object?
In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
Which javadoc tag is used to denote a comment for methods parameters?
JSP files creates ________________
putValue(...) method takes _____________________-
executeUpdate automatically updates data because___________
When we invoke repaint () for a Component, the AWT invokes the method:
Any method in a supper class can be over ridden in its subclass.
Which of the following command lines options generates documentation for all classes and methods?
class.forName(...) creates an instance of java ODBC driver
An EJB is a server-side component that encapsulates the business logic of an application
All the bitwise operators have the same level of precedence in Java.
Which of the following methods can be used to remove a component from the display?
A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
Any class may be inherited by another class in the same package.
A panel can not be added to another panel.
Which of the following methods can be used to change the size of a size() *resize()
Objects are passed to a method by use of call-by-reference.
The setBackground() method is part of the class
The default case is always required in the switch selection structure.
DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
Members of a class specified as private are accessible only to the methods of the class.
Given the codeString s = new String("abc");Which of the following calls are valid?
Which of the following methods can be used to draw the outline of a square?
Declarations can appear anywhere in the body of a Java method.
Declaring a method synchronized guarantees that the deadlock cannot occur.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter