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
Is string mutable in c#?
What are the benefits of using windows services:
Why do we use partial class in c#?
What is difference between virtual and override in c#?
Which are the loop types available in c#?
How do I start a program in c#?
What does || mean in programming?
What are the delegates in c#?
Explain static class members.
What is called method in c#?
What is c sharp used for?
What are anonymous functions in c#?
What is the size of a decimal?
How do you prevent a class from being inherited?
How do you comment out code in c#?