difference between Abstract and Interface?
Answers were Sorted based on User's Feedback
Answer / ravi raj
Abstract Class:
---------------
1.abstract class contain the abstract and non-abstract methods
2.abstract class contain static and non-static variables
3.through abstract class we can get 0-50% abstraction in java
4. if any class declared as a abstract i.e abstract class
5. we wont create instance for this class.
6. we cont make final for this class.
Interface :
-----------
1. Interface contains only abstracted methods.
2. it allows only static and final variables.
3. interface is by default abstracted and public.
4. through interface we get 100% abstraction.
5. we can solve the multiple threading in interface.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / kumar rk
interface
---------
in java interfaces are fully unimplemented structures.
here all methods are public and abstract by default(added by compiler)
abstract class
--------------
abstract classes are partially implemented structure.
means it can have abstract method or may be not.
but in every case object cannot be created.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a modular application?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
what is a portable component?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
How we set Bean Id when we are creating web application using SpringMVC and Hibernet Integration
diffrence between jsp and servelts.
suppose i open my yahoo mail.then copy the url. then sign out & close browser.then open browser paste that url on the browser.will i get my mail opened or not? i know it ill not.but how it work.how i create like this type of secure site?
Write a program on RMI and JDBC using StoredProcedure?
What is the purpose of the notifyall() method?
What is the difference between Super and This Keyword?
What are synchronized methods and synchronized statements?
What is thread deadlock? How to resolve thread deadlock?