Answer Posted / nsiddiqui69@yahoo.com
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 ? | 5 Yes | 1 No |
Post New Answer View All Answers
What are the basic interfaces of java collections framework?
What’s the difference between the methods sleep() and wait()?
Explain java heap space and garbage collection?
what is recursion in java
What does @param args mean in java?
What is == mean?
How many threads does a core java have?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
Why spring singleton is not thread safe?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
Can a class have a static inner class?
What is complexity and its types?
Describe the Big-O Notation.
How can you read content from file in java?
What is variable argument in java?