Java Basic
- Which of these package is used for text formatting in Java programming language?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
java.text allows formatting, searching and manipulating text.
- How to read a classpath file?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
This method can be used to load files using relative path to the package of the class.
- Which environment variable is used to set java path?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
JAVA_HOME is used to store a path to the java installation.
- How to assign values to variable using property?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
@Value are used to inject the properties and assign them to variables.
- How to use environment properties in the class?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
@Autowired
private Environment env;