Can we create instance for Abstract class?
Answer Posted / manjit
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);
}
}
Try the above program and be amazed and shocked!
Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
How are delegates chosen?
What is the difference between a class and an object c#?
Explain what is an interface in c#?
What is delegate in c# interview questions?
What is desktop example?
What is difference between first and firstordefault?
What is the use of command builder?
Explain the types of comments in c#?
What is a Assembly?
What is indexer c#?
Explain About a class access specifiers and method access specifiers.
What are the steps for creating clr trigger
What is the difference between returning iqueryable vs ienumerable?
How does dependency injection work c#?
What is difference between ienumerable and ienumerator in c#?