首 页枣庄华育行业资讯课程介绍师资力量百问百答就业广场荣誉展示学员作品在线报名
evening dresses Jessamyn's Regency Costume Companion: Evening Dress
Evening dress, c. 1800, courtesy the Regency Fashion Page. .... It's good to be reminded of the dim light in which these evening dresses were seen. ...
chi flat irons Flat Iron Hair Straighteners like CHI, Sedu, Solia, Instyler and more
We've got what you need for great hairdos: the next -generation ceramic hair straighteners, hair flat irons and ionic hair dryers. ...
adult costumes Site de vente kamas dofus - PC - JeuxConsoles
Je suis all sur le site de Mmosale pour acheter des kamas. Pas d'arnaque pas trop cher et vite livr. Je conseille donc ce site ...
baby dolls Dofus kamas,Kamas dofus,Dofus Forum,Kamas online
voulez-vous acheter dofus kamas bon march, venez notre site dofuskamas.fr, ici un large stockage de dofus kamas et nous vous donnerons un excellent ...
dancewear ANNCIOS BRASIL - Anncios Classificados rj - vestido de noiva lindo
22 Abr 2009 ... vestido de noiva lindo - GRANDE OPORTUNIDADE Vendo: Vestido de noiva completo, em cetim de noiva, todo bordado em excelente estado,detalhes ...
格安ウェディングドレス 468 563 868 962 1011 1134 1301 1717 1944 2150 2455 2481 2920 3018 3149 3262 3348 3526 3839 3848 3866 3885 3978 4264 4359 4438 4603 4869 5079 5127
 您现在的位置: 鲁南IT教育网|枣庄华育国际|枣庄软件培训|山东华育|枣庄培训|软件工程师 >> 在线报名 >> 正文
文章属性:[热门]
JAVA基础:JAVA的11条精典入门基础
[ 作者:未知 转贴自:未知 点击数:1086 文章录入:admin 更新时间:2007-12-10 10:24:30 ]

1.包package
在第一句引用package pkg1[.pkg2[.pkg3]];如果有一个例程Test.java:它的引用包:package hi;
先在当前目录下用javac -d . Test.java就会在当前目录下建立目录hi,将生成的Test.class文件放到./hi/下。
还有一种就是直接手工建立hi,把Test.java放到./hi/下,用javac hi/Test.java 和java hi/Test即可。

2.import java.io.*;
根据环境变量classpath来查找包,如果你自己创写一个jar或者是zip文件时,想调用他,一定要在classpath中写出来。

3.如果得到form表单传递的值和名称
Enumeration enum = request.getParameterNames();
while(enum.hasMoreElements()){
String paraName = (String) enum.nextElement();
String paraValue = (String) request.getParameter(paraName);
}

4.不能在类的main和函数外用System.out.println,在静态函数中不能引用静态变量。

5.在类中,有实例变量和类变量两种,类变量就是被类中的所有对象共享。要用static.
方法有实例方法.类方法和构造器方法三种。第一种只有先创建对象再调用他。第二种要用static,可以直接调用他。

6.this是一个非静态的变量,不能与static并存。

7.如果一个JAVA程序没有包,在引用的时候,要用import 文件名。

8.如何去制造缺省值的参数呢?
eg: function(arg1,arg2)
eg: function(arg1) return function(arg1,'no');


9.在JSP程式或者是SERVLET中,如果想退出程序执行,直接return就可以了。

10.新建一个类的另一种方法:
Class _s = Class.forName('java.util.Date');
Date d = _s.newInstance();

11.instanceof是判断一对象的引用是否某一类型。
eg: Interger i = new Integer(10); if(i instanceof Integer) T if(i instanceof Long) F

打印此文】 【关闭窗口

版权所有 Copyright? 2003 枣庄华育国际 页面执行时间:702.1484毫秒
地址Add:枣庄市市中区华山路90号(新三中往北50米路西) 银狐大厦对过  企业邮箱E-mail:tzwq@sina.com
电话Tel:0632-3816111 3816222 3816333  0632-3201039
E-mail:tzwq@sina.com
建议使用Microsoft Internet Explorer 5.0 以上版本浏览器 800×600分辨率浏览本站  
鲁ICP备08007477号