JAVA Interfaces and Abstract Classes
What will be the output?interface A{public void method();}class One{public void method(){System.out.println("Class One method");}}class Two extends One implements A{public void method(){System.out.println("Class Two method");}}public class Test extends Two{public static void main(String[] args){A a = new Two();a.method();}}

None of these
will print Class One method
Compilation Error
compiles fine but print nothing
will print Class Two method

ANSWER DOWNLOAD EXAMIANS APP

JAVA Interfaces and Abstract Classes
Which of the following statements regarding abstract classes are true?

An abstract class can be used as a data type.
A subclass of a non-abstract superclass can be abstract.
All of these
A subclass can override a concrete method in a superclass to declare it abstract.
An abstract class can be extended.

ANSWER DOWNLOAD EXAMIANS APP

JAVA Interfaces and Abstract Classes
Which of the following class definitions defines a legal abstract class?

public class abstract A { abstract void unfinished(); }
class A { abstract void unfinished(); }
class A { abstract void unfinished() { } }
abstract class A { abstract void unfinished(); }

ANSWER DOWNLOAD EXAMIANS APP