Property Name
|
Description
|
Java Version
|
file.encoding
|
The character encoding for the default locale |
1.1 |
file.encoding.pkg
|
The package that contains the converters that handle converting between
local encodings and Unicode |
1.1 |
file.separator
|
The platform-dependent file separator (e.g., "/" on UNIX, "\" for Windows) |
1.0 |
java.class.path
|
The value of the CLASSPATH environment variable |
1.0 |
java.class.version
|
The version of the Java API |
1.0 |
java.compiler
|
The just-in-time compiler to use, if any. The java interpreter provided
with the JDK initializes this property from the environment variable JAVA_COMPILER. |
1.0 |
java.home
|
The directory in which Java is installed |
1.0 |
java.io.tmpdir
|
The directory in which java should create temporary files |
1.2 |
java.version
|
The version of the Java interpreter |
1.0 |
java.vendor
|
A vendor-specific string |
1.0 |
java.vendor.url
|
A vendor URL |
1.0 |
line.separator
|
The platform-dependent line separator (e.g., "\n" on UNIX, "\r\n" for
Windows) |
1.0 |
os.name
|
The name of the operating system |
1.0 |
os.arch
|
The system architecture |
1.0 |
os.version
|
The operating system version |
1.0 |
path.separator
|
The platform-dependent path separator (e.g., ":" on UNIX, "," for Windows) |
1.0 |
user.dir
|
The current working directory when the properties were initialized |
1.0 |
user.home
|
The home directory of the current user |
1.0 |
user.language
|
The two-letter language code of the default locale |
1.1 |
user.name
|
The username of the current user |
1.0 |
user.region
|
The two-letter country code of the default locale |
1.1 |
user.timezone
|
The default time zone |
1.1 |
相关推荐
java System源码 system类代表系统,系统级的很多属性和控制方法都放置在该类的内部。该类位于java.lang包。 由于该类的构造方法是private的,所以无法创建该类的对象,也就是无法实例化该类。其内部的成员变量和...
一个安装在不同操作系统的Java虚拟机负责着Java程序与操作系统之间的工作,因此每个Java虚拟机的系统环境属性是不同的,我们可以通过访问Java虚拟机的系统属性来获知一些关于当前操作系统的一些基本信息,这些信息的...
作用:列出当前系统所有的属性及对应属性值。 使用方法:在当前文件路径运行“java -jar showsystemproperties.jar”。 使用场景:忘记了System.getProperty(String key)中的属性名等。
package org.fenet.javamail; import java.io.FileInputStream;... System.out.println(email); String key = "name"; String value = "xbl"; pfR.setValue(key, value, "This is my name "); } }
Java程序通常包括一个或多个类,每个类都包含了属性和方法。Java程序的入口点是一个特殊的类,它包含了一个名为main的方法,这个方法是程序的起点。Java程序可以使用各种开发工具进行编写、编译和调试,比如IntelliJ...
我们从System的源码中可以了解到System是java中的一个自定义的类,位于java.lang包下面。 Out是System里面的一个静态成员,他是java.io.PrintStream类的引用。他是个不可更改的类方法。并且是通过Static修饰的。...
系统属性Java 系统属性Java Eclipse专案
import java.io.File; import java.io.FileInputStream; import java.util.Properties; public class ReadConfigation{ /** * 属性文件全名 */ private static final String PFILE ="Config....
System.out.println(fan1.toString()); } 版本 2:满分15 分 修改版本1 中Fan 类,让其继承JPanel 类,并且把color 属性设置为Color 类型,默认 属性为red。随机产生radius,取值范围为1-5;随机产生颜色,取值范围...
java.lang.System.gc(); 建议回收内存,但系统不一定回应,他会先去看内存是否够用,够用则不予理睬,不够用才会去进行垃圾回收 内存中什么算是垃圾: 不再被引用的对象(局部变量,没有指针指向的) java的...
如何使用Java读写系统属性? 读: Properties props = System.getProperties(); Enumeration prop_names = props.propertyNames(); while (prop_names.hasMoreElements()) { String prop_name = (String) ...
031316_【第13章:Java类集】_属性类:Properties笔记.pdf 031317_〖第13章:Java类集〗_范例讲解:一对多关系笔记.pdf 031318_〖第13章:Java类集〗_范例讲解:多对多关系笔记.pdf 031401_【第14章:枚举】_枚举的...
个流对象,静态属性 System.out 标准输出设备:显示器 System.in 标准输入设备:键盘 System.err 标准错误设备:屏幕 System.out PrintStream 类对象,输出字节数据流 System.in ...
//JSONObject.getNames(jsonObjectName) 静态方法 获取对象的所有属性名,返回成数组。 System.out.println(JSONObject.getNames(o.getJSONObject("cart_1325036696007"))[1]); System.out.println(o....
主要介绍了详解Java获取环境变量及系统属性的方法,讲解了System.getEnv()和System.getProperties()这两个核心方法的使用,需要的朋友可以参考下
《java程序设计》课程的题库资料,由贺州学院整理,可供学生期末课程复习使用,也可以供相关任课教师出卷使用。 内容示例为: 9. 阅读下列程序片段,...由于子类拥有父类所有的属性和方法,所以输出的是ShappeCircle。
电脑系统日期时间属性设置程序(JAVA版)
java 操作sqllite的jar包,附带java代码。 package com.nsxx.qp.util; import java.sql.*; public class SqlLite { public static void main(String[] args) { try { //连接SQLite的JDBC Class.forName("org...
我使用Netbeans和MySQL用Java编写了一个医院管理系统,这是我为第一年的项目创建的,它使用Java在Netbeans中结合Java MySQL来实现。 在后端使用MySQL 提供密码保护 友好的界面 记录和检索数据 启动过程 首先,您...