Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Core Java - Interview Questions and Answers for 'Environment variables' - 4 question(s) found - Order By Newest | ||||
| ||||
Ans. CLASSPATH and PATH are the two variables. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. PATH, CLASSPATH and JAVA_HOME | ||||
![]() | ||||
![]() ![]() ![]() ![]() ![]() ![]() | ||||
| ||||
Ans. System.getEnv gets the environment variables where System.getProperties gets Java properties. | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Yes new Properties().putAll(System.getenv()); | ||||
![]() | ||||
![]() ![]() ![]() | ||||