what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / nanda
diff b/w abstract class and interface
1.Abstract class contain both normal fn as well as Abstract
fn wheras Interface can define only abstract fn.
2.by default declared variable in interface is static and
final.
in realtime projects we use inerfaces in AWT OR SWING,where
we implement the inerfaces and use them
| Is This Answer Correct ? | 30 Yes | 12 No |
Post New Answer View All Answers
How do you download stubs from Remote place?
How to sort an unsorted array in java?
What are the types of inner classes (non-static nested class) used in java?
How do you avoid global variables?
Explain about procedural programming language or structured programming language and its features?
What type of variable is error flag?
What is collection api?
What is an empty list in java?
Can each java object keep track of all the threads that want to exclusively access it?
What do you mean by stream pipelining in java 8?
Can you inherit from an abstract class java?
What is complexity and its types?
What are the 8 data types in java?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
Is array synchronized in java?