class A
{
int a = 10;
void a()
{ }
}
class B
{
int b = 20;
void b()
{
}
}
class Ex_instanceOf extends A
{
public static void main(String args[])
{
A b = new A();
System.out.println(b instanceof A);
}
} //提示错误为:Exception in thread "main" java.lang.NoSuchMethodError: main
{
int a = 10;
void a()
{ }
}
class B
{
int b = 20;
void b()
{
}
}
class Ex_instanceOf extends A
{
public static void main(String args[])
{
A b = new A();
System.out.println(b instanceof A);
}
} //提示错误为:Exception in thread "main" java.lang.NoSuchMethodError: main
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货