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 

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 Expert Approved Answer
Step: 1 Unlock

1 Issue with the Interface The problem with the provided interface is that the metho... View full answer

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!