Question: Given the interface declared below, which statement is invalid? public interface I 1 { int i; int j = 5 ; getVal ( ) ;

Given the interface declared below, which statement is invalid?
public interface I1{
int i;
int j=5;
getVal();
int getResult(Student s);
}
j can be changed to be a different value.
getVal() needs code implementation.
getVal() is missing a return type.
i must be assigned with a numeric integer value.
getResult method accepts a reference data type parameter.
Given the interface declared below, which

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!