Question: 1. What is wrong with the following interface? public interface Something IsWrong { void aMethod (int aValue) { System.out.println(Hi Mom); } 2. Fix the
1. What is wrong with the following interface? public interface Something IsWrong { void aMethod (int aValue) { System.out.println("Hi Mom"); } 2. Fix the interface in question 1. 3. Is the following interface valid? public interface Marker { }
Step by Step Solution
3.41 Rating (154 Votes )
There are 3 Steps involved in it
1 Issue with the Interface The problem with the provided interface is that the metho... View full answer
Get step-by-step solutions from verified subject matter experts
