Multiple Choice Question

Quiz Guidelines

 

QID: 
384
Question: 

Given the following interface definition, which definitions are valid?

interface I1{   
void setValue(String s);   
String getValue(); }

Select 2 options

A.    class A extends I1{   
String s;   
void setValue(String val) {       s = val; }   
String getValue() { return s; } } 
B.    interface I2 extends I1{   
void analyse(); } 
C.    abstract class B implements I1{   
int getValue(int i) { return 0; } } 
D.    interface I3 implements I1{   
void perform_work(); } 

Q&A Set: 

Search the Web

Custom Search

Searches whole web. Use the search in the right sidebar to search only within javajee.com!!!