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 use of ienumerable?

450


What does args mean in c#?

490


Does console.writeline() stop printing when it reaches a null character within a string?

516


What is difference between array and arraylist c#?

455


Who introduced c#?

493






What is the max value of int32 in c#?

488


What's your approach to fetch static data in your windows form application?

505


What are predicates in c#?

536


What is the use of private constructor in c#?

491


Explain the difference between class and interface in .net?

430


Compare and contrast between the System.Array.CopyTo() and Clone()?

547


What is int64 in c#?

495


What is difference between private and protected?

495


Define delay signing?

522


What are events in C#?

552