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 do you identify if jvm is 32-bit or 64-bit from java program?
Can we sort array in java?
What is the difference between stringbuffer and stringbuilder?
What is a subsequence of a string?
Can a class extend more than one class?
Can constructor be inherited?
What is string and example?
Can a final variable be manipulated in java?
What is static keyword in java?
Write a program to print 15 random numbers using foreach of java 8?
Can list have duplicates in java?
If two threads have same priority which thread will be executed first ?
What is a variable declaration?
What is an example of procedure?
What is the purpose of stub and skeleton?