In this tutorial, we have discussed abstraction in Java in detail. Abstraction is a technique of hiding unnecessary details from the user . The user is only given access to the details that are relevant. Vehicle operations or ATM operations are classic examples of abstractions in the real world.