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
How to change the priority of thread or how to set priority of thread?
What purpose do the keywords final, finally, and finalize fulfill?
What is contractor means and methods?
How we can make copy of a java object?
What is replaceall in java?
How to print an arraylist in java?
What is jvm? Why is java called the platform independent programming language?
What is a java string?
What are the 5 types of research methods?
Explain the significance of class loaders in bootstrap?
How a string is stored in memory?
What is the purpose of interface?
Can we have this () and super () together?
What will happen if a thrown exception is not handled?
how to split string in java?