+ Start a Discussion
ShravanKumarBagamShravanKumarBagam 

Why can't we use private variables on visualforce pages?

If  we can't use private variables on visualforce pages then where we can use it ?

Best Answer chosen by Admin (Salesforce Developers) 
neophyteneophyte

Private keyword is used when you don't want the variable to be accessed or modified outside the apex class where it is defined. More info here