what is the difference between abstract class and
Interface?where we can use it in realtime projects?

Answer Posted / prabir kumar

1) Classes can implements any no. of interfaces, but
extends only one abstract class.

2) interfaces can be best the choice when your program need
some global variables.

Is This Answer Correct ?    24 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is collatration?

2986


Is binary a low level language?

684


Define max and min heap, also the search time of heap.

797


What is a pattern what is an anti pattern?

678


Explain the use of sublass in a java program?

744


What is java util concurrentmodificationexception?

681


Can I declare a class as private?

794


If try block is successfully executed, Then Is Finally block executed?

808


What is the equal sign?

779


What is javac_g?

745


What is the method to expand and collapse nodes in a jtree?

788


What is java jit compilers?

734


Can we access instance variables within static methods ?

779


How do I enable java in safari?

746


if u open login & logout ,how can udisplay the timelogin & logout members ?

1925