笔记(4/11-4/12) java基础
2016-04-13 14:16
375 查看
Navicat连接oracle报Cannot load OCI dll,126
缺少dll文件,工具->选项->oci->oci library
非静态方法和变量必须依附对象实例存在,无法直接通过类名去访问,静态方法和静态方法可以
Runtime.getRuntime().availableProcessors() jvm可以使用的cpu数量
Runtime.getRuntime().freeMemory() jvm中的空闲内存
Runtime.getRuntime().totalMemory() jvm中的总内存(试图使用的最大值)
JVM内存相关单位为字节(Byte)
File.listRoots()获取机器上各磁盘
file.getFreeSpace 获取空闲空间 单位Byte(字节)
file.getTotalSpace 获取总空间 单位Byte(字节)
SimpleDateFormat 日期格式化 DecimalFormat 数字格式化
eclipse 调格式化宽距离 preferences->Java->Code Style->Formatter->New
缺少dll文件,工具->选项->oci->oci library
非静态方法和变量必须依附对象实例存在,无法直接通过类名去访问,静态方法和静态方法可以
Runtime.getRuntime().availableProcessors() jvm可以使用的cpu数量
Runtime.getRuntime().freeMemory() jvm中的空闲内存
Runtime.getRuntime().totalMemory() jvm中的总内存(试图使用的最大值)
JVM内存相关单位为字节(Byte)
File.listRoots()获取机器上各磁盘
file.getFreeSpace 获取空闲空间 单位Byte(字节)
file.getTotalSpace 获取总空间 单位Byte(字节)
SimpleDateFormat 日期格式化 DecimalFormat 数字格式化
eclipse 调格式化宽距离 preferences->Java->Code Style->Formatter->New
相关文章推荐
- java多线程入门学习(二)
- java double类型运算问题
- Java仿12306图片验证码
- Spring和ThreadLocal
- RPC小例子解决Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
- SpringMVC环境搭建
- 项目移植过程中报:“Project facet Java version 1.7 is not supported.” 错误
- Java并发编程:Thread类的使用(详解)
- java 中\b \t \n \f \r \" \
- 现实JAVAEE开发中最常用到的技术和工具
- eclipse hadoop设置报错 9000 failed on connection exception
- 配置hadoop-1.2.1 eclipse开发环境 Run as hadoop
- 启动hadoop NoClassDefFoundError: javax/net/SocketFactory
- hadoop 运行java 清洗数据 报错Failed to set permissions of path: \tmp\...
- java ArrayList的应用
- eclipse 向HDFS中写入文件报错 Permission denied
- Eclipse 常用快捷键 非常实用
- Java Enum的多态性
- SWT或eclipse相关下载地址
- Java设计模式(一) Adapter(适配器)模式及I/O实例引申