In real time project when will we use Abstract class. and
what are the difference between abstract and interface.
Answer Posted / naveen verma
Abstract Class:- its should have declared as abstract and must contain atleast one abstract method. an abstract class can be extended from either an abstract class or the class which is extending the abstract class should implement all methods of abstract method.
Interface:- In interface the methods are only declared not define the class which implementing the interface can define the method body as per its need. its not mendatory to define every method of the interface.
In really time application we extend abstract class only we when we need to modify the class. where as interface can be used to implements its method.
Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is the map interface?
How are commas used in the intialization and iteration parts of a for statement?
Why won’t the jvm terminate when I close all the application windows?
how i secure my site with the https protocol.what are the steps?
What is message driven beam?
Explain what is orm?
what is meant by JRMP?
Can you give me a simple example of using the requiredif validator rule?
Can constructors be synchronized in java?
What is scalable, portability in the view of J2EE?
when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??
What does module-relative mean?
whats is statement and procedure
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?