Question: How does Spring generate bean names for classes annotated with @Component that do not specify a name?

  1. It uses the short name of the class with the first letter in lowercase.
  2. It uses the short name of the class.
  3. It uses the short name of the class in uppercase.
  4. It uses the canonical name of the class in lowercase.

Answer: The correct answer of the above question is Option A:It uses the short name of the class with the first letter in lowercase.