Answer Posted / guru
interface call2
{
void get1();
int a=8;
}
interface call extends call2
{
void get();
}
class interex implements call,call2
{
public void get()
{
System.out.println("hi");
}
public void get1()
{System.out.println("hsfwsi");}
}
class interex1
{
public static void main(String s[])
{
call e=new interex1();
e.get();
e.get1();
System.out.println(e.a);
}
}
second pgm
-----------
interface call2
{
void get1();
int a=8;
}
interface call extends call2
{
void get();
}
class interex implements call,call2
{
public void get()
{
System.out.println("hi");
}
public void get1()
{System.out.println("hsfwsi");}
}
class interex1
{
public static void main(String s[])
{
call e=new interex();
e.get();
e.get1();
System.out.println(e.a);
}
}
| Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
What do you mean by platform independence of Java?
What are the 6 functions?
What does this () mean in java?
What is the original name of java?
What is java objectoutputstream?
What is set in java?
What is the basic of java?
What does java se mean?
What is method reference in java?
What do you mean by garbage collection used in java?
Is heap stored in ram?
What do you mean by scope of variable?
Does isempty check for null?
Why do people says “java is robust”?
What is meant by javabeans?