Encapsulation is a programming process of bundling data and its associated functions into a single unit (like a class in Java). That way, admins restrict direct access to data and ensure access goes through the functions within the class. Encapsulation is a fundamental concept in OOP and the go-to technique for data hiding.