Question: What is the value prin 1 public class MyString { 2 3 private String string; 4 5 public void setMyString ( String string ) {
What is the value prin public class MyString
private String string;
public void setMyStringString string
this.string string;
public static void secondMyString s
s new MyString;
ssetMyStringGopher;
public static void first
MyString f new MyString;
fsetMyStringGoldy;
secondf;
System.out.printlnfgetMyString;
public static void mainString args
first;
public String getMyString return string;ted at line
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
