In the code below, what data types the variable x can have?
byte b1 = 5;
byte b2 = 10;
x = b1 * b2;
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
When we invoke repaint () for a Component, the AWT invokes the method:
Which of the following methods belong to the String class?
A JSP file can be stored_________________
It is an error to catch the same type of exception in two different catch blocks associated with a particular…
In order to connect to a database through java program we must create _______-
Objects are passed to a method by use of call-by-reference.
Java always provides a default constructor to a class.
Which of the following string can be used as mode string for creating a RandomAccessFile object?
Throwing an exception always causes program termination.
A method declared as static can not access non-static class members.
When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
In RMI before running the client program we must start RMI Registry.
If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
In a single Servlet class we can use____________
Any method in a supper class can be over ridden in its subclass.
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
Which of the following control expressions are valid for an if statement?
The concept of multiple inheritance is implemented in Java by
Declarations can appear anywhere in the body of a Java method.
Which of the following represent legal flow control statements?
Servlet can have ___________
The programmer must explicitly create the system .in and system .out objects.
A class may be both abstract and final.
Which of the following are keywords?
We can over load methods with differences only in their return type.
Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
Every call to wait has a corresponding call to notify that will eventually end the wafting.
Submit button always fires doPost(...)
putValue(...) method takes _____________________-
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter