IGATE Interview Question

How will you implement security in java?

Interview Answer

Anonymous

Nov 19, 2012

By using Encaptulation, In Encaptulation we will provide security for data by avoiding direct access of class members and that members are accessed by proper authendication and public setter and getter methods.