I've been trying to run this program but I'm getting run time error as:
Exception in
thread "main" java.lang.NoClassDefFoundError: c:\raj\AQuestion.
raj is the file inwhich I have saved my program.I've been able to compile it but could not run it.Any suggestions?
public class AQuestion
{
public static void main(
String args[])
{
AQuestion question = new AQuestion();
question.method(null);
question.func(12, 2);
question.func(12, 2.2);
}
public void method(Object o)
{
System.out.println("Object Verion");
}
public void method(String s)
{
System.out.println("String Version");
}
public void func(int i, int j)
{
System.out.println("Int Version");
}
public void func(int i, long j)
{
System.out.println("Long Version");
}
public void func(int i, double j)
{
System.out.println("Double Long Version");
}
public void func(long i, double j)
{
System.out.println("Double Int Version");
}
}