Declaring a method synchronized guarantees that the deadlock cannot occur.
An individual array element that is passed to a method and modified in that method will contain the modified value when the called method completes execution.
putValue(...) method takes _____________________-
Two arguments of object type
First one is of a character type and second one is of an object type
First one is of an object type and second one is of a character type
Which javadoc tag is used to denote a comment for methods parameters?
In RMI before running the client program we must start RMI Registry.
The modulus operator (%) can be used only with Integer operands.
The name of a Java program file must match the name of the class with the extension Java.
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
Which of the following are the wrapper classes?
EJBs can be of the following type(s)
None of the above
A variable declared inside the for loop control can not be referenced out side the loop.
Submit button always fires doPost(...)
One the features of is that an array can store many different types of values.
The expression (x == y && a<b) is true If either x == y is true or a<b is true.
Java always provides a default constructor to a class.
Java is fully object oriented programme.
What does the following line of code do?
TextField text=new TextField(10);
Creates text object that can hold 10 rows of text.
Creates text object that can hold 10 columns of text.
Creates the object text and initializes it with the value 10.
Which of the following methods belong to the String class?
Which of the following statements are true?
An abstract class may not have any final methods?
A final class may not have any abstracts methods.
Transient variables must be static.
Any method in a supper class can be over ridden in its subclass.
It is an error to have a method with the same signature in both the super class and its subclass.
The length of a string object 's1' can be obtained using the expression s1.length.
An abstract class defined is java.io.
A class we can use to read primitive data types.
An interface that defines methods to open files.
An interface that defines methods to read primitive data types.
We can over load methods with differences only in their return type.
In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean expressions are not always evaluated.
Which of the following represent legal flow control statements?
A constructor must always invoke its supper class constructor in its first statement.
A final class may not have any abstract method.
If m and n are int type variables, what will be the result of the expression
'm % n' when m = -14 and n = -3?
All the bitwise operators have the same level of precedence in Java.