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
Write a program to find the angle between the hours and minutes in a clock
What is IL / CIL / MSIL?
What is difference between abstraction and encapsulation in c#?
What Is The Difference Between The System.array.copyto() And System.array.clone()?
Why objects are stored in heap in c#?
What are the features of c#?
How can you write a class to restrict that only one object of this class can be created (Singleton class)?
Why is it efficient to use System.string under System.Text.StringBuilder ?
Give an example to show for hiding base class methods?
Can we have only “try” block without “catch” block in c#?
What are the Types of values mode can hold session state in web.config
Why do we need interface in c#?
How do I format a string in c#?
Where do I put dll files?
What is multicast delegate explain with example?