Answer Posted / siva mukesh
interface inf1
{
void show();
}
class Derived implement inf1
{
void show1()
{
S.o.p("Derived class method");
}
public void show()
{
S.o.p("Interface method");
}
}
class infdemo
{
p.s.v.m(String args[ ])
{
Derived d1= new Derived();
d1.show();
d1.show1();
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does string intern() method do?
Explain the difference between static and dynamic binding in java?
What is a method vs function?
What do you understand by access specifiers in Java?
What language is pass by reference?
What is the purpose of a parameter?
Explain java thread life cycle.
Can a string be null?
How do you create a method in java?
What are local variables?
How do you clear a method in java?
Why is multiple inheritance not supported in java?
what is encapsulation in java? Explain
explain local datetime api in java8?
What is fail first in java?