A developer creates a custom controller and custom Visualforce page by using the following. What does the user see when accessing the custom page?
Controller
public class MyController {
public String myString;
public String getMyString(){
return 'getMyString';
}
public String getStringMethod1(){
return myString;
}
public String getStringMethod2(){
if (myString == null)
myString = 'Method2';
return myString;
}
}
Page:
<apex:page controller =""myController"">
{!myString} {!StringMethod1} {!StringMethod2} {!myString}
</apex:page>
Select one of the following: