Q. Which of these cannot be declared static?
Q. What is the output of this program?
class access{
public int x;
static int y;
void cal(int a, int b){
x += a ;
y += b;
}
}
class static_specifier {
public static void main(String args[])
{
access obj1 = new access();
access obj2 = new access();
obj1.x = 0;
obj1.y = 0;
obj1.cal(1, 2);
obj2.x = 0;
obj2.cal(2, 3);
System.out.println(obj1.x + " " + obj2.y);
}
}
Q. A package is a collection of ______.
Q. ________ statement is valid for array declaration.
Q. What is the output of relational operators?
Q. Which of these operators can skip evaluating right hand operand?
Q. Which exception is thrown by the read() method of Input Stream class?
Q. Which of the following denotes a javadoc comment?
Q. Using the keyword Interface you can fully abstract a _________.
Q. One interface can inherit another by use of the keyword ______?
Q. An exception is an _________ condition that arises in a code.
Q. _______ is at the top of the exception class hierarchy.
Q. In java, thread to thread communication is called _______.
Q. Which of these access specifiers can be used for an Interface?
Q. Java programs perform I/O through ________.