Activity › Forums › Salesforce® Discussions › What is difference between Global and Public keywords in Salesforce?

  • Ajay Prakash

    Member
    January 19, 2018 at 6:53 AM

    Hi Ankit,

    These both are the access modifiers of apex class, methods, variables. Public means the method or variable can be used by any Apex in this same application or in the same namespace. Global provides a hieger level of access than Public.Any global method or variable can be accessed by any apex code that has access to the class not only from the same application but from outside the application. Global is not recommended, so use only when you need to give access to outside the application.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Free 5 Day Salesforce Challenge!

Video in

To access the signup form head over to www.talentstacker.com/Salesforce TalentStacker Podcast Salesforce Episode: https://talentstacker.libsyn.com/how-to-earn-60k-100k-a-year-within-6-months-without-a-college-degree-say-what-salesforce-career-development-path-with-bradley-rice Do you already have a job as a Salesforce Professional and…