Related Questions
What is the correct answer?
4
Which of the following statements are true?
A. UTF characters are all 24 bits.
B. Reader class has methods that can read integers and floats.
C. Unicode characters are all 16 bits.
What is the correct answer?
4
A package is a collection of
D. classes and interfaces
What is the correct answer?
4
The concept of multiple inheritance is implemented in Java by
A. extending two or more classes
B. extending one class and implementing one or more interfaces
What is the correct answer?
4
One the features of is that an array can store many different types of values.
What is the correct answer?
4
When we implement an interface method, it should be declared as public.
What is the correct answer?
4
The name of a Java program file must match the name of the class with the extension Java.
What is the correct answer?
4
In RMI before running the client program we must start RMI Registry.
What is the correct answer?
4
The length of a string object 's1' can be obtained using the expression s1.length.
What is the correct answer?
4
If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
What is the correct answer?
4
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.
What is the correct answer?
4
The import statement is always the first no comment statement in a Java program files.
What is the correct answer?
4
The setBackground() method is part of the class
What is the correct answer?
4
Frames and applets cannot be used together in the same program.
What is the correct answer?
4
When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
What is the correct answer?
4
A thread can make second thread ineligible for execution by calling the suspend (-) method on second thread.
What is the correct answer?
4
Which of the following will produce a value of 10 if x = 9.7?
What is the correct answer?
4
Declaring a method synchronized guarantees that the deadlock cannot occur.
What is the correct answer?
4
The modulus operator (%) can be used only with Integer operands.
What is the correct answer?
4
The keywords reserved but not used in the initial version of Java re:
What is the correct answer?
4
We can over load methods with differences only in their return type.
What is the correct answer?
4
Which key word can protect a class in package from accessibility by the classes outside the package?
D. don't use any keyword at all(make it default)
What is the correct answer?
4
The expression (x == y && a<b) is true If either x == y is true or a<b is true.
What is the correct answer?
4
Which of the following are the wrapper classes?
What is the correct answer?
4
Which of the following classes are available in the java.lang package?
What is the correct answer?
4
When the string objects are compared with ==, the result is true If the strings contain the same values.
What is the correct answer?
4
Given the code
String s = new String("abc");
Which of the following calls are valid?
What is the correct answer?
4
Which of the following methods can be used to draw the outline of a square?
What is the correct answer?
4
All the bitwise operators have the same level of precedence in Java.
What is the correct answer?
4
JSP files creates ________________
B. html files and java files
C. java files and class files
What is the correct answer?
4
With javadoc, which of the following denotes a javadoc comment?