When we r go to abstract class and when we go to Interface?
i have confusion this question while in interview plz clarify
Answer Posted / atul
multiple inheritence is not possible so we use interface
instead of it.when we declare interface then inside declare
all methods is by default abstract, data member is by
default final & static .final means there is must
Initialization at declare time otherwise inside first
constructor call.
thats it...
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
Can we cast any other type to boolean type with type casting?
What is google full form?
How can we run a java program without making any object?
Can a source file contain more than one class declaration?
What is a default constructor and also define copy contrucyor?
Explain the Propertie sof class?
What is the use of join method?
how to write a server program and sending the mails to the server using smtp protocol please help me
What does jenkins do?
What are "class access modifiers" in Java?
Why is java so important?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?
Why is stringbuffer faster than string?
What are constants?
What is the difference between a synchronized method and a synchronized block?