Home Tutorialhelp Comment getClass.getName()

 
 

Comment

varun
getClass.getName(),
August 13, 2010 at 5:00 PM

Public class A
{
}
Public class B extends A
{
public static void main String args[])
{
A a = new B();
System.out.println(a.getClass().getName());
}
}

whats the output
View All Comments | View Tutorial
Related Tutorial and Articles

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.