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
Does printwriter create a file?
What is class??
Is hashset ordered?
What is a parameter used for?
Difference between predicate, supplier and consumer ?
What is numel matlab?
What is constructor and its types?
what state does a thread enter when it terminates its processing? : Java thread
Why can't we override private static methods?
Explain different ways of creating a thread?
Is null a value?
Is int primitive data type?
Can we create an object of private class?
What is meant by stack and queue?
How do you add an arraylist to an array in java?