what is the difference between abstract class and
Interface?where we can use it in realtime projects?
Answer Posted / prabir kumar
1) Classes can implements any no. of interfaces, but
extends only one abstract class.
2) interfaces can be best the choice when your program need
some global variables.
Is This Answer Correct ? | 24 Yes | 8 No |
Post New Answer View All Answers
Tell us something about different types of casting?
What are data types in programming?
What a static class can contains?
What is a nested class?
What are the new features in java 8?
What is function declaration?
What is an array length?
What is the static block?
what is meant by abstract class?
what is mutual exclusion? How can you take care of mutual exclusion using java threads? : Java thread
How many threads does a core java have?
Do you know how to reverse string in java?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
What do you mean by of string::valueof expression in java 8?
Which non-unicode letter characters may be used as the first character of an identifier?