Thanks A.jyotsna,
Can u tell me differnce between abstract class and interface

vikash

Answer Posted / sridhar

Abstact class can have both concrete and non-concrete
methods where as interface has only non-concrete methods.
Unlike interface, Abstract calss can contain fields that
are not static and final.

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 a parameter example?

531


Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.

1610


What modifiers are allowed for methods in an interface?

648


What is update method called?

665


Can I declare a class as private?

590






Explain 5 features introduced in jdk 1.7?

613


What are the approaches that you will follow for making a program very efficient?

650


What is polymorphism in java? What are the kinds of polymorphism?

582


what are different ways in which a thread can enter the waiting state? : Java thread

494


explain what is transient variable in java?

626


How many decimal places is a double?

539


How can an object be unreferenced?

543


Is int primitive data type?

507


What does main method?

566


What is the byte range?

582