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 I
int i;
int j;
getVal;
int getResultStudent 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
