Bird
0
0

Which of the following is the correct syntax to set a property named my.custom.property to value 123 in application.properties?

easy📝 Syntax Q3 of 15
Spring Boot - Fundamentals
Which of the following is the correct syntax to set a property named my.custom.property to value 123 in application.properties?
Amy.custom.property=123
Bmy.custom.property : 123
Cmy.custom.property = "123"
Dmy.custom.property -> 123
Step-by-Step Solution
Solution:
  1. Step 1: Understand property syntax in application.properties

    Properties use key=value format without quotes or arrows.
  2. Step 2: Check each option for correct syntax

    Only my.custom.property=123 matches the correct key=value syntax.
  3. Final Answer:

    Correct syntax is my.custom.property=123 -> Option A
  4. Quick Check:

    Property syntax = key=value [OK]
Quick Trick: Use key=value format without quotes or arrows [OK]
Common Mistakes:
  • Using colon instead of equals
  • Adding quotes unnecessarily
  • Using arrows or other symbols

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes