what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / neha thakur
abstract class contains all abstract method or all concrete
method or combination of both. we can not directly create
object of abstract class.abstract class methods must
implemented in sub class.
interface contains declared method but does not contain body
of method.like abstract class we can not create instance of
interface.methods defined in interface are public &
implicity called as abstract method & interface must be
implemented in the classes with implements keyword which
contains implementation of methods
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you trim a space in java?
What is factor r?
Can a class be declared as static?
What is static and final keyword in java?
Can extern variables be initialized?
How many bits is a string in java?
What is __ init __ functions?
What is return in java?
What are untrusted applets?
What is the major advantage of external iteration over internal iteration?
what is thread? What are the high-level thread states? : Java thread
What methodology can be employed to locate substrings inside a string?
What methods are used in Servlet?Applet communication?
How will you load a specific locale?
Is an array a vector?