5. Program
//Find what it gives Compiletion Error / Compiletion Successfully / Output ?
class A
{
void test1()
{
System.out.println("Form A-test1");
}
void test2()
{
System.out.println("Form A-test2");
}
}
class B extends A
{
void test3()
{
super.test1();
super.test2();
test1();
test2();
}
void test2()
{
System.out.println("Form B-test2");
}
public static void main(String[] args)
{
B b1 = new B();
b1.test3();
System.out.println("DOne");
}
}
6. Program
//Find what it gives Compiletion Error / Compiletion Successfully / Output ?
class Z
{
static void test()
{
}
}
class V extends Z
{
static void test()
{
}
static void test1(int i)
{
}
}
Page....