9/12/2006

System getenv() reinstated in JDK 1.5

In this previous post, I wrote about using System.getenv(key) to get OS environment variable. Actually, System.getenv(key) is not new. It was introduced at the very beginning of JDK, deprecated in JDK 1.2, and reinstated in JDK 1.5 (aka JDK 5).

The reason why it was deprecated, according to JDK 1.3 javadoc:

Deprecated. The preferred way to extract system-dependent information is the system properties of the java.lang.System.getProperty methods and the corresponding getTypeName methods of the Boolean, Integer, and Long primitive types.
Then bug 4199068 was submitted shortly after, requesting this method to be reinstated. Due to popular demand, this method was eventually reinstated in JDK 1.5.
Tags: , ,

4 comments:

Unknown said...

Great and Useful Article.

Online Java Training

Java Online Training India

Java Online Course

Java EE course

Java EE training

Best Recommended books for Spring framework

Java Interview Questions








Java Course in Chennai

Java Online Training India

eMexoT said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

Internet Of Things training in electronic city

Institute in Gurgaon said...

SysAppPro provides real-time and placement centered SAP S4 HANA Training in Gurgaon. Our SAP S4 HANA course covers every one of the ideas from fundamental to advanced level and our SAP S4 HANA course is intended to give placement in top MNC organizations in Gurgaon when understudies total the SAP S4 HANA training course effectively.

For More Info:- SAP HANA Course in Gurgaon

john said...

آهنگ جدید
پخش آهنگ