Answer Posted / ravikiran(aptech mumbai)
Interface is purely abstract.all the methods declared inside
the interfaqce are by default abstract and public.
where as an abstract class can have abstarct as well as non
abstact methods.
And an abstract class may heve no abstract methods at all.
we will do like this to restrict the creation of instance
ofthat particular class.
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the final access modifier in java?
How do you implement polymorphism in our day to day life?
Can an interface extend a class?
What is hotjava?
Explain the importance of throws keyword in java?
Why string objects are immutable in java?
Explain differences between collection api and stream api?
Does substring create a new object?
Differentiate between run time error and syntax error.
Why does java not support pointers?
Can you explain the usages of class.forname()?
How would you dynamically allocate memory to an array?
Is there a case when finally will not execute?
What are the core java topics?
What is methods and methodology?