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 a class level variable in c#?
What is difference between struct and class in c#?
How do I link two windows forms in c#?
What is an object pool in .net?
List down the access modifiers available in c#?
How to prevent the error while updating ui control from another thread?
What is a satellite assembly in c#?
What is querystring in c#?
What is action in c# 3.5?
Can properties be private in c#?
What is enumerable in c#?
How do I know if executenonquery is successful c#?
What is the importance of closing an ado.net application?
What are value types in c#?
Does c# support properties of array types?