Question: 1. Pick an interface in the JDK, describe the method(s) that interface requires, and describe a good use of it. 2. Write the code

1. Pick an interface in the JDK, describe the method(s) that interface

1. Pick an interface in the JDK, describe the method(s) that interface requires, and describe a good use of it. 2. Write the code of one Java interface with one method. 3. Also write two Java classes that will implement the method of this interface, but each class will implement this method from the interface differently. Simply put System.out.println inside each method with different output to demonstrate different implementation. 4. provie few sentences explaining your code and the expected result/output.

Step by Step Solution

3.44 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

lets go through each step 1 Lets choose the Runnable interface from the Java Development Kit JDK The ... 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!