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 the difference between null and string empty in c#?
What is Implementation inheritance
What is strongly typed in c#?
Are string objects mutable or immutable?
What are controls in c#?
What is difference between dll and exe in c#?
What is the role of the datareader class in ado.net connections?
What is the process of delegation?
Do events have return type c#?
How do you encapsulate in c#?
Do vs while c#?
What is an int c#?
1. Describe page life cycle?
Explain the differences between static, void and public in c#?
Why dictionary is faster than list?