自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

lili

I'am Lili.

  • 博客(27)
  • 资源 (1)
  • 收藏
  • 关注

原创 静态web和动态web的区别与联系

静态网站特点:  1. 静态网站是最初的建站方式,浏览者所看到的每个页面是建站者上传到服务器上的一个html(htm)文件,这种网站每增加、删除、修改一个页面,都必须重新对服务器的文件进行一次下载上传。网页内容一经发布到网站服务器上,无论是否有用户访问,每个静态网页的内容都是保存在网站服务器上的,也就是说,静态网页是实实在在保存在服务器上的文件,每个

2009-12-28 18:15:00 15157 7

转载 SCJP试题十六

1.             Wich three are valid declarations of a char?(choose three)A   char c1=064770;B   char c2=’face’;C   char c3=0Xbeef;D   char c4=/u0022;E   char c5=’/iface’;F   char c6=’/ufac

2009-12-23 23:57:00 1021

转载 SCJP试题十五

22. A Java array is an ordered collection of three kinds of things. What are they?Fill in the blank.正确答案:primitives. object references, references to other arrays.  20. There are seven chara

2009-12-23 23:56:00 669

转载 SCJP试题十四

615. Given the following class definition:public class Droitwich{class one {private class two{public void main(){System.out.println("two");}}}}Which of the following statements are

2009-12-23 23:55:00 728

转载 SCJP试题九

564. What will appear in the standard output when you run the Tester class?class Tester{int var;Tester(double var){This.var=(int)var;}Tester(int var){this ("hello");}Tester(String s)

2009-12-23 23:51:00 1446 1

转载 SCJP试题八

880. If you run the following code on a on a PC from line directory c:/ source:import java.io.*;class Test {public static void main(String[] args) throws Exception{File file = new File("Ran.te

2009-12-23 23:49:00 869

转载 SCJP试题七

685. For an object to be a target for a Thread, that object must be of type:Fill in the blank.正确答案: Runnable 686. If you supply a target object when you create a new Thread, as in:Thread t=n

2009-12-23 23:48:00 1062

转载 SCJP试题六

930. What String instance method would return true when invoked like this?a.method(b);Where a="GROUNDhog" and b="groundHOG"?Select the one right answer.A. equals()B. toLowerCase()C. toUppe

2009-12-23 23:45:00 2009

转载 SCJP试题五

600. Your chief Software designer has shown you a sketch of the new Computer parts system she is about to create. At the top of the hierarchy is a Class called Computer and under this are two child cl

2009-12-23 15:40:00 1121

转载 SCJP试题四

 void test(){if (!Test.this.flag);{sample();}}private boolean flag = false;}publi void sample(){System.out.println("Sample");}public Test(){(new Inner()).test();}public sta

2009-12-23 15:38:00 887

转载 SCJP试题三

 B. float f=-412;C. int other=(int)true;D. double d=0x12345678;E. short s=10;正确答案: A、B、D、E 444. What is the result of executing the following code:class Test{public static void main(

2009-12-23 15:36:00 1002

转载 SCJP试题二

 int index;Test(int mpg){milesperGallon=mpg;index=0;}Test(){}public static void main(String[] args){int index;Test c=new Test(25);if(args.length>0)if(args[index].equals("Hiway"))

2009-12-23 15:33:00 738

转载 SCJP试题一

Section(部分,节):Language Fundamentals(基本原则)Problem[1]A method is ...[Select One][1]an implementation of an abstraction.[2]an attribute defining the property ofa particular abstraction[3]a

2009-12-23 15:29:00 937

转载 SCJP十三

子类的构造函数会自动调用父类无参数的构造函数 在重写中,所谓子类中方法的访问控制不能比父类中方法的访问控制范围窄是指:Ø       一个package方法可以被重写为package、protected和public的Ø       一个protected方法可以被重写为protected和public的Ø       一个public方法只可以被重写为public的局部变

2009-12-23 15:23:00 587

转载 SCJP十二

1. What will happen when you compile and run this program: class Test{pubilc static void main(String[]args){int length=100;int[] d=new int[length];for(int index=0;indexSystem.out.println(d[index]);}}S

2009-12-23 15:22:00 575

转载 SCJP试题十一

564. What will appear in the standard output when you run the Tester class?class Tester{int var;Tester(int var){this ("hello");}Tester(String s){this();System.out.println(s);}Teste

2009-12-23 15:19:00 1261

转载 SCJP考题十

10.What output is produced by the following program?class Test{public static void main(String args[]){long size=10;int[] array=new int[size];size=20;System.out.println(array.length);}}

2009-12-23 14:59:00 835

转载 hashcode解析

hashcode是个啥?它与equals的关系? 1.hashcode 拆开看hash可以理解为一种hash算法,经过算法后会得出一个值就叫code,于是得到了我们的hashcode.但是经过计算得到的hashcode不一定是唯一的,比如8/3,7/3结果都是2,这时候我们的对象拥有了相同的hashcode,可以理解为他们被放进了"2" 这个箩里面 2.equals equals是进一步对对象的比

2009-12-23 10:35:00 637

转载 java中equals和==的区别

值类型是存储在内存中的堆栈(以后简称栈),而引用类型的变量在栈中仅仅是存储引用类型变量的地址,而其本身则存储在堆中。==操作比较的是两个变量的值是否相等,对于引用型变量表示的是两个变量在堆中存储的地址是否相同,即栈中的内容是否相同。equals操作表示的两个变量是否是对同一个对象的引用,即堆中的内容是否相同。==比较的是2个对象的地址,而equals比较的是2个对象的内容。显然,当equals为t

2009-12-23 10:05:00 637

转载 intellej idea常用快捷键

命令名 快捷键 说明 编辑.折叠到定义Ctrl + M,Ctrl + O自动确定在代码中创建区域的逻辑边界(如过程),然后隐藏它们。编辑.注释选定内容Ctrl + K,Ctrl + C使用编程语言的正确注释语法将代码的当前行标记为注释。(vc2003)编辑.完成单词Ctrl + j Alt + 向右键显示基于当前语言的“完整单词”。(vc2003)编辑.删除Delete删除光标右侧的一

2009-12-10 13:10:00 10223 1

转载 visual studio 2008快捷键大全

命令名 快捷键 说明 编辑.折叠到定义Ctrl + M,Ctrl + O自动确定在代码中创建区域的逻辑边界(如过程),然后隐藏它们。编辑.注释选定内容Ctrl + K,Ctrl + C使用编程语言的正确注释语法将代码的当前行标记为注释。(vc2003)编辑.完成单词Ctrl + j Alt + 向右键显示基于当前语言的“完整单词”。(vc2003)编辑.删除Delete删除光标右侧的一

2009-12-10 02:35:00 1029

原创 Hibernate几个易混淆方法解析及对象状态解析

load方法和get方法的区别:举例说明:User user=session.load(User.class,1);其一:此时,load方法并不会执行,而是要等到user对象第一次被使用到的时候才会执行load方法比如,我现在写一条打印语句:System.out.println(user.getClass().getName());此时,load方法将会执行其二:

2009-12-08 01:59:00 747

转载 软件版本详解

alpha、beta、gamma 用来标识测试的阶段和范围alpha: 是指内测,即现在说的CB,指开发团队内部测试的版本或者有限用户体验测试版本;beta: 是指公测,即针对所有用户公开的测试版本;gamma: 是beta 版做过一些修改,成为正式发布的候选版本(Release Candidate)RC:(Release Candidate) 顾名思义么 ! 用在软件上就是候选版

2009-12-07 13:44:00 489

转载 java开发者必去的技术网站

http://www.javaalmanac.com - Java开发者年鉴一书的在线版本. 要想快速查到某种Java技巧的用法及示例代码, 这是一个不错的去处. http://www.onjava.com - OReilly的Java网站. 每周都有新文章. http://java.sun.com - 官方的Java开发者网站 - 每周都有新文章发表. http://www.developer

2009-12-07 10:19:00 826 2

原创 Hibernate3学习总结——第一课时 简单应用演示

第一步:建立一个普通的java工程 第二步:选定工程,右击 Myeclipse--->Add Hibernate Annotation...导入Hibernate相关的包,及数据库驱动包,我用的是oracle11g,驱动程序包为:ojdbc6.jar 第三步:自定义两个包,示例:cn.com.dao 和 cn.com.pojo,在cn.com.pojo包下建立UserPojo.

2009-12-06 22:58:00 748 1

原创 struts中ActionForm的执行流程

ActionForm执行流程图: ActionForm工作原理:1、  检查Action的映射,确定Action中已经配置了对ActionForm的映射2、  根据name属性,查找form bean的配置信息3、  检查Action的form bean的使用范围,确定在此范围下(request/session),是否已经有此form bean的实例。4、  假设当前范

2009-12-03 16:44:00 703

原创 静态工厂方法构造对象优缺点

对于一个类,要获取它的一个实例,通常的做法是提供一个公用的构造函数,然而还有另一种方法,我们称之为静态工厂方法,实质上也就是一个简单的静态方法,它返回一个类的实例。其实,静态工厂方法获取对象实例,我们并不陌生,我们来看看API中的一个实例:java.lang.Boolean类:public static Boolean valueOf(boolean b){       return

2009-12-03 12:40:00 1489 1

svn版本控制实用教程

非常实用的svn教程,主要面向运用,而非理论,学习过后,能立即上手,svn能运用自如

2009-12-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除