Answer:
As API is known as Application Programming Interface. It basically simplify how user interact without any hassle which the API itself does all the complexity work which caters conveniences to end user.
Twitter API is a web-based JSON API which allows developers to programmatically interact with Twitter. Any request over the internet must be accessed by Twitter and using Twitter API is by and large within the Twitter network and community.
Java API on another hand, is a library of software component make available to any one who has installed Java Development Kit.
An abstraction of my daily life would be as simple as turning on the TV and click a button to access the latest news and have all my preference content be broadcast out within a fraction of a minute.