what is difference between abstract and interface?
can i give real time example for the two topics?

Answer Posted / richa

abstract class can have some concrete methods and abstract
methods too.abstract class can use accessibility modifier
in abstract class.
but in interface all the method are abstract.In interface
no accessibility modifier is allowed by default it takes
public access modifier.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a switch statement and an if statement?

525


What is the purpose of a volatile variable?

561


What are anonymous inner classes?

570


Why declare Main() inside the class in java ?

611


Can we have return statement in finally clause? What will happen?

523






What is the basic concept of java?

547


Is null a string in java?

564


What is argument in java?

552


What is difference between ++ I and I ++ in java?

543


what is a working thread? : Java thread

563


What is a null class?

582


What are structs in java?

594


What do you understand by Header linked List?

608


How to stop a thread in java? Explain about sleep () method in a thread?

594


Can we declare register variable as global?

521