Question: Which option cannot fill in the blank to print Clean socks? A. var wash = new Wash(); B. var wash = new Wash(); C. Wash
Which option cannot fill in the blank to print Clean socks?

A. var wash = new Wash();
B. var wash = new Wash();
C. Wash wash = new Wash();
D. Wash wash = new Wash();
E. Wash wash = new Wash();
F. All of these can fill in the blank.
class Wash { T item; public void clean (T item) { System.out.println("Clean " + item); } } } public class LaundryTime { public static void main(String[] args) { wash.clean ("socks"); }
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
The correct option that cannot fill in the blank to print C... View full answer
Get step-by-step solutions from verified subject matter experts
