Can someone pls explain to me the use of beans in Java? Thanks a lot. :)