Barclays interview question

What are beans (java)