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


Please Help Members By Posting Answers For Below Questions

What is the difference between null and string empty in c#?

635


What is Implementation inheritance

698


What is strongly typed in c#?

659


Are string objects mutable or immutable?

697


What are controls in c#?

682


What is difference between dll and exe in c#?

664


What is the role of the datareader class in ado.net connections?

695


What is the process of delegation?

701


Do events have return type c#?

697


How do you encapsulate in c#?

668


Do vs while c#?

662


What is an int c#?

630


1. Describe page life cycle?

1813


Explain the differences between static, void and public in c#?

735


Why dictionary is faster than list?

744