Valid CRT-450 Dumps shared by ExamDiscuss.com for Helping Passing CRT-450 Exam! ExamDiscuss.com now offer the newest CRT-450 exam dumps, the ExamDiscuss.com CRT-450 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com CRT-450 dumps with Test Engine here:
A developer creates a custom controller and a custom Visualforce page by using the code block below: public class MyController { public String myString { get { if (myString == null) { myString = 'a'; } return myString; } private set; } public string getMyString (){ return 'getMyString'; } public string getStringMethod () { if (myString == null) { myString = 'b'; } return myString; } } <apex:page controller = "MyController"> {!StringMethod}, {!myString}, {!myString} </apex:page> What can the user expect to see when accessing the custom page?
Correct Answer: B
Recent Comments (The most recent comments are at the top.)
yamada - Sep 26, 2022
I have executed the code and result is a, a, a —–Controller: public class MyController { public String myString { get{ if(myString == null){ myString = ‘a’; } return myString; }private set; } public String getMyString(){ return ‘getMyString’; } public String getStringMethod(){ if(myString == null){ myString = ‘b’; } return myString; } } —-VF page:
Recent Comments (The most recent comments are at the top.)
I have executed the code and result is a, a, a
—–Controller:
public class MyController {
public String myString {
get{
if(myString == null){
myString = ‘a’;
}
return myString;
}private set;
}
public String getMyString(){
return ‘getMyString’;
}
public String getStringMethod(){
if(myString == null){
myString = ‘b’;
}
return myString;
}
}
—-VF page:
{!StringMethod}, {!myString}, {!myString}