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 integer parseint?
Can we restart a thread already started in java?
What is bifunction in java?
Explain aggregation in java?
What does this mean java?
What are the steps involved to write rmi based programs?
What are default methods ?
How do you create a bulleted list?
What about main thread in java?
What if constructor is protected in java?
What is the primitive type short?
What is the difference between static binding and dynamic binding?
State the main difference between c++ and java?
What is the advantage of preparedstatement over statement?
What is sizeof in java?