Question: What is the output of the given code? interface Stationery{ static final String value=Books; String check1(); String check2(String a); } public class Desk implements

What is the output of the given code? interface Stationery{ static final String value="Books"; String check1(); String check2(String a); } public class Desk implements Stationery{ public String check1(){ return value; } public String check2 (String a){ return a; } } public class Bench public static void main(String args[]){ Desk d = new Desk(); System.out.println("A "+ d.check2("Bag")+" of " +d.check1());
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
