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

 

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

1 Expert Approved Answer
Step: 1 Unlock 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 Computer Network Questions!