Question: what is getter and setter in salesforce?
Answer: Hi, Get (getter) method is used to pass value from controller to VF page while set (setter) is used to set the value back to controller variable. Above two methods are same and will return same results.