
java基础知识
文章平均质量分 57
miaoxiongguohui
自我评价</br></br>为人真诚,性格乐观;团队合作意识较强,能够很好的聆听他人需求;吃苦耐劳,能承受工作压力;自学能力强,善于接受新知识,能快速融入新的环境</br></br>
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java异常体系
1.子类覆盖父类方法时,子类抛出的异常只能是父类的异常集合的子集,或者子类不抛异常; 2.异常结构: Throwable | ----Error(错误:OutOfMemeryError、NoClassDeFoundError等) ----Exception(异常:包含RuntimeException这种非编译期检查异常和非RuntimeException这种检查异常) | ----R原创 2014-02-15 23:32:53 · 648 阅读 · 0 评论 -
https如何用java实现?
一.使用JDK下的keystore命令创建keystore文件:转载 2014-09-25 16:35:15 · 796 阅读 · 0 评论 -
jdk 1.6新特性
Java SE 6技术变化集锦翻译 2014-09-03 18:37:59 · 901 阅读 · 0 评论 -
jdk1.8 新特性
What's New in JDK 8 Java Platform, Standard Edition 8 is a major feature release. This document summarizes features and enhancements in Java SE 8 and in JDK 8, Oracle's implementation of Java SE 8.翻译 2014-09-03 18:42:24 · 1270 阅读 · 0 评论 -
没看懂的代码:byte[]与int互转
public static int bytes2int(byte[] b) { int mask = 0xff; int temp = 0; int res = 0; for (int i = 0; i res temp = b[i] & mask; res |= temp; }原创 2014-08-25 15:54:45 · 617 阅读 · 0 评论 -
ajax 请求后浏览器报400 bad request
原因:ajax中url有问题,需要转义;转载 2014-06-06 17:43:13 · 2396 阅读 · 0 评论 -
java字符串面试题
1. package com.gavin.convert; public class Test3 { public static void main(String[] args) { String str1 = new String("abc"); StringBuffer buffer = new StringBuffer("abc"); joinChar(s原创 2014-03-05 00:07:22 · 985 阅读 · 0 评论 -
java类型转换
基础: byte (1个字节) short(2个字节) int(4个字节) long(8个字节) char(2个字节) float(4个字节) double(8个字节) boolean(1位) char型的前256个字符('\u0000'-'\u00FF')与ASCII码中的字符完全重复 '0' - '9' 对应 48-57 'a' - 'z‘ 对原创 2014-03-04 23:42:46 · 631 阅读 · 0 评论 -
java 集合
1.结构: 1) Collection(interface) |-List | |-ArrayList | |-LinkedList | |-AbstractList | | |- Vector | | | |-Stack(后进先出) |-Set | |-HashSet | | |-LinkedHashSet | |-Sort原创 2014-02-19 00:20:16 · 573 阅读 · 0 评论 -
JNDI接触
Java Naming and Directory Interface,Java命名和目录接口; 百度百科提到: 命名服务将名称和对象联系起来,使得我们可以用名称访问对象。目录服务是一种命名服务,在这种服务里,对象不但有名称,还有属性。 命名服务: 给对象起个名称,并将名称和该对象绑定,然后可以通过名称找到相应的对象; 目录服务: 不只保存对象和对应名称的关联,对象还有各种属性,并且可原创 2014-02-18 00:18:12 · 684 阅读 · 0 评论 -
内部类
package com.gavin; public class TestInnerClass { public static void main(String[] args) { Outter.Inner inner = new Outter().new Inner();//很少用的方式,但可以这样使用 inner.print(); System.out.print原创 2014-02-16 23:14:21 · 567 阅读 · 0 评论 -
ssl双向验证
keytool -genkey -v -alias tomcat -keyalg RSA -keystore F:/caixun_work/test_tomcat_https/tomcat.keystore -dname "CN=127.0.0.1,OU=风絮,O=风絮,L=昆明,ST=云南,C=CN" -validity 3650 -storepass xiejin -keypass xieji转载 2014-09-26 02:42:39 · 669 阅读 · 0 评论