Can we declare an anonymous class as both extending a class
and implementing an interface?

Answer Posted / ravikiran

Yes

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between synchronized and synchronized block?

496


How much is a java license?

520


What is the purpose of an interface?

548


Can a constructor have different name than a class name in java?

587


What must a class do to implement an interface in java programming?

529






What is the basic concepts of OOPS?

679


What is data type modifier?

524


What is public/private protected in java?

539


How we can run a jar file through command prompt in java?

514


What are the advantages of user defined functions?

547


Can substring create new object?

554


Is 0 true or false?

510


How does the garbage collector works in java?

564


Is string serializable in java?

538


Can we increase array size dynamically in java?

498