I have a class which is abstract which contains only the
abstract methods. This is similar to an interface. Then, if
i have given a choice to choose one of them. Which one i
have to choose and why?

Answer Posted / venu

i preferred to choose interface bcoz
if i implement interface still i have a chance to extend
another class

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the swingutilities.invokelater(runnable) method for? : Java thread

550


What is the main purpose of serialization in java?

530


What is the symbol for average?

520


How is a variable stored in memory?

531


Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.

532






What is string pool in java?

566


What is the class in java?

563


What is an object's lock and which object's have locks in java programming?

571


Who is the owner of java?

541


What is the purpose of nested class in java?

600


Which one of the following suits the description of a string better: derived or primitive?

513


How does multithreading take place on a computer with a single cpu in java programming?

536


How can you make a class serializable in java?

569


How do you sort a string in alphabetical order in java?

537


Do we have pointers in java?

532