This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
Answer Posted / 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 |
Post New Answer View All Answers
Realized?
Write a program to find the whether a number is an Armstrong number or not?
What is the difference between equals() and == in java?
What is a constructor overloading in java?
Differentiate between static and non-static methods in java.
What do you mean by an interface in java?
Is minecraft 1.15 out?
What is the difference between break and continue statements?
Write a program to print count of empty strings in java 8?
What is a classloader in java?
How to create a base64 decoder in java8?
What are the differences between heap and stack memory in java?
What is an object in java and how is it created?
What is parsing in java?
How to sort array in descending order in java?