Welcome Guest | Sign in | Register
Interface - Discussion Page For Q.2875 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Interface > Questions and Answers

Q: Interface A {}
Class B{
Public final static void test(){
System.out.println(“test”);
} }
Class C extends B implements A{
Public static void main(String args[]){
New C().test();
C.test(); } }
A. compile time error B. runtime error
C. test test D. none of the above

Answer and Explanation

Answer:test test

Explanation:
It’s a normal flow of execution.

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved 2012-2015 SoftLucent.