|
|
350 Mock Questions on SCJP 1.5 - JUST Rs.200 or 7 USD
Send us mail to sales@javabeat.net
more details
|
Do you have paypal account? Click Here to pay now and get the questions.
|
|
SCJP 5.0 Objective - 1(20 Questions)
3) What statements are true regarding the following program?
package chapters.chap01;
public class Chap03 implements MyTestClass.MyTestInterface{
@Override
public void myTestMethod() {
System.out.println("my test method");
}
}
class MyTestClass{
interface MyTestInterface{
void myTestMethod();
}
}
-
-
-
Answer
3) b and c
Option b and c are correct. Option a is incorrect as it is possible to define a nested interface inside a class.
|
|
350 Mock Questions on SCJP 1.5 - JUST Rs.200 or 7 USD
Send us mail to sales@javabeat.net
more details
|
|