This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
Answer / Aditya Kumar
The given abstract class has an error. The correct syntax for an abstract method with no implementation should be 'public abstract void C();' and the keyword 'virtual' is not used in Java.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is method reference in java?
what do you understand by synchronization? : Java thread
Can Java be said to be the complete object-oriented programming language
What is the importance of static variable?
what is the need of the Ajax?
Why object class is super class for every class in java?
How concurrent hashmap works?
How to create an immutable class?
What do you mean by ternary operator in java?
Implement a stack with push (), pop() and min() in O(1) time.
what is the diff between Servletcontext and servletconfig?
What does file separator do in java?