Answer the question
In order to leave comments, you need to log in
What are beans in java?
Good evening everyone!
See, I ran into a problem while figuring out bean definitions in Java. In different sources, the definitions are radically different, which is why I came to the conclusion that the term bean means different things in different industries. I found the following variations:
1. Normal bean. A serializable class with private fields, getters/setters and a public constructor with no arguments.
2. Spring bean. A class that is used by spring in a DI container (a regular class in spring, in short, subject to dependency).
3.Enterprise Java Bean. A class used in JavaEE. There are three types, some of which are divided into subtypes, etc...
Tell me, what are the real types of beans in Java 3? Or have I screwed up somewhere?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question