61 .
Which is the valid declarations within an interface definition ?
A.public double method();
B. public final double method();
C. static void method(double d1);
D.protected void method(double 1);
View AnswerAns: public double method();
62 .
Which operator is used by java to free the memory allocated to an object when the object is no longer needed ?
B. free
C. new
D.None of these
View AnswerAns: None of these
63 .
What is error in this code ? byte b=50; b=b*50
A.b can not contain this value,limited by its range.
B. type mismatch,cant convert from int to byte.
C. b can not contain value 50.
D.no error.
View AnswerAns: no error.
64 .
Which one of the following conversion does not obeys WIDENING term ?
A.long to double
B. int to char
C. short to int
D.byte to long
View AnswerAns: int to char
65 .
Which of the following is true ?

1. A class can extend more than one class
2. A class can extend only one class but many interfaces.
3. An interface can extend many interfaces.
4. An interface can implement many interfaces.
5. A class can extend one class and implement many interfaces.
A.1 and 2
B. 2 and 3
C. 3 and 4
D.3 and 5
View AnswerAns: 3 and 5