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

Answer Posted / khaleek ahmad

Abstract class is a special kind of class which can not be
instantiated while Interface is an Entity. You can define
some methods in Abstract class but can not in interface

For more detail see at
http://interview-preparation-for-you.blogspot.com/2010/10/difference-between-abstract-class-and.html

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by inner class in java?

747


What is final class?

759


Can we have any code between try and finally blocks?

757


Is namespace same as package in java?

727


When would you use a static class?

736


Is vector ordered in java?

710


What is the private method modifier?

792


What is the maximum size of a string in java?

732


How do you call a reference in java?

684


How to solve the problem of generating the unique hash keys with hash function?

1651


When parseint method can be used?

702


Is zero a natural number?

756


What environment variables are required to be set on a machine in order to run Java programs?

837


What is skeleton and stub?

752


What is method overloading in JAVA? Why is it not present in C ?

780