what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / kala
1) if the class is abstract. this class con't instatiate any
object. if we that class implemented with interface, we can
instatiate object with respect interface methods.
2) if we extend that particular abstract class, we must be
implemented all those abstract methods in that class.
otherwise it will automatically become abstract class. in
interface, if we implements the interface not compalsory
implemented, we can use those class ref.
| Is This Answer Correct ? | 47 Yes | 36 No |
Post New Answer View All Answers
What is the use of singleton?
How can you traverse a linked list in java?
What is 32 bit float?
What are the java ide’s?
What is string literal in java?
What is finalize()?
What is the default value of local and global variables?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
What do you mean by a JVM?
What are the steps in the jdbc connection?
What is difference between Heap and Stack Memory?
Can we rethrow the same exception from catch handler?
What is hashmap and map?
How a string is stored in memory?
What is an immutable object? How do you create one in java?