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 are the 3 types of loops in java?
How many threads does a core java have?
Variables used in a switch statement can be used with which datatypes?
What is the most important feature of java? What is an interface?
What is the use of generics? When was it added to the Java development Kit?
What is the difference between this() and super() in java?
How many static init can you have?
What are void pointers?
Is a boolean 1 bit?
What is the function of log?
Why do we use regex?
Can a abstract class be defined without any abstract methods?
Can you give names of Container classes?
What is the tradeoff between using an unordered array versus an ordered array?
What are different types of states exist for a thread?