1. Program
//Find what it gives Compiletion Error / Compiletion Successfully / Output ?
class A
{
void test()
{
}
private void test(int i)
{
}
public int test(double d)
{
return 10;
}
}
2. Program
//Find what it gives Compiletion Error / Compiletion Successfully / Output ?
class B
{
private static void test()
{
System.out.println("from test");
}
protected int test()
{
System.out.println("from new test ");
return 20;
}
}
3. Program
//Find what it gives Compiletion Error / Compiletion Successfully / Output ?
class C
{
static void test()
{
System.out.println("from test");
}
static void test(int i)
{
}
int test(double d)
{
return 10;
}
public void test(int i, int j)
{
}
}
Page....