Core Java/Classes ,Constructor ,Methods,Inheritance Sample Test,Sample questions

Question:
@Value Annotation

1.The @Value annotation is used to read the environment or application property value in Java code.

2.If the property is not found while running the application, Spring Boot throws the Illegal Argument exception as Could not resolve placeholder spring.application.name in value ${spring.application.nam

3.Both

4.None


Question:
Are Spring Boot supports different properties based on the Spring active profile?

1.Yes

2.No


Question:
Can we keep two separate files for development and production to run the Spring Boot application?

1.Yes

2.No


Question:
Can we provide more than one application properties?

1.Yes

2.No


Question:
In Spring Boot, properties are kept in the application.properties file under the classpath?

1.Yes

2.No


Question:
Set/Change port in Spring Boot?

1.server.port = 9090

2.server.ports = 9090

3.servers.port = 9090

4.servers.ports = 9090


Question:
Spring Boot supports Application Properties support ?

1.Yes

2.No


Question:
Spring Boot, properties are kept in the application.properties file 

1.Yes

2.No


Question:
The application.properties file is located in the src/main/resources directory in Spring boot ?

1.Yes

2.No


Question:
We have a service name as r4rdemo .How do we start it with Spring Boot application?

1.spring.application.name = r4rdemo

2.spring.service .name = r4rdemo

3.Both

4.None


More MCQS

  1. Nobel Prizes in Chemistry
  2. G.K Question and Answer - Chemistry MCQs Set I
  3. G.K Question and Answer - Chemistry MCQs Set II
  4. G.K Question and Answer - Chemistry MCQs Set III
  5. G.K Question and Answer - Chemistry MCQs Set IV
  6. G.K Question and Answer - Chemistry MCQs Set V
  7. G.K Question and Answer - Chemistry MCQs Set VI
  8. Chemistry MCQ Questions Set-1
  9. Chemistry MCQ Questions Set-2
  10. Chemistry MCQ Questions Set-3
  11. Chemistry MCQ Questions Set-4
  12. Chemistry MCQ Questions Se-9
  13. Chemistry MCQ Questions Set-10
  14. Chemistry MCQ Questions Set-11
  15. Chemistry MCQ Questions Set-12
  16. Chemistry MCQ Questions Set-13
  17. Chemistry MCQ Questions set-8
  18. Chemistry MCQ Question -Periodic Classification
  19. Chemistry MCQ Question - Basic Concept
  20. Chemistry MCQ Question - Electrochemistry
  21. Chemistry MCQ Question - Environmental Chemistry
  22. Chemistry MCQ Question - BLOCK ELEMENTS
  23. Chemistry MCQ Question - ThermoChemistry
  24. Chemistry MCQ Question - Aliphatic Hydrocarbons
  25. Chemistry MCQ Question - Experimental Techniques
  26. Chemistry MCQ Question - Macromolecules
  27. Chemistry MCQ Question - MCAT ECAT Chemistry Paper
  28. Chemistry MCQ Question - Aromatic Hydrocarbons
  29. Chemistry MCQ Question - Atomic Structure
  30. Chemistry MCQ Question - Chemical Equilibrium
  31. Chemistry MCQ Question - Reaction Kinetics
  32. Chemistry MCQ Question - Transition Elements
  33. Chemistry MCQ Question - Aldehydes and Ketones
  34. Chemistry MCQ Question - Common Chemical Industries
  35. Chemistry MCQ Question - Atomic
  36. Chemistry MCQs Set 1
  37. Chemistry MCQs
  38. Chemistry MCQ for 7-8th Class
  39. Chemistry MCQ for 9-10th Class
  40. Chemistry MCQs
Learn Classes ,Constructor ,Methods,Inheritance,Learn Core Java Objetive choice questions and answers,Core Java Multiple choice questions and answers,Core Java objective, Core Java questions , Core Java answers,Core Java MCQs questions and answer
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!