Can we create instance for Abstract class?
Answer Posted / lakshminarayana golla
hi manjitt can any body explain me about this below program?
it is executing successfully without any errors.
can u explain me what is the concept hide in this program
please.....
abstract class aa {
public abstract void main(String[] args);
}
class aaa {
public static void main(String[] args)throws Exception{
Object x = Class.forName("aaa").newInstance();
System.out.println(x);
}
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is default parameter in c#?
What are custom exceptions in C#?
How does split work in c#?
Does hashset allow duplicates c#?
What is difference between internal and protected internal in c#?
What is difference between web and window application?
When is a class declared as a class abstract?
How many types of polymorphism are there?
Why we use dll in c#?
Explain why do I get an error (cs1006) when trying to declare a method without specifying a return type?
Is string mutable in c#?
How do I type a whitespace character?
How can you access a private method of a class?
What is generic types in c#?
What is uint16?