当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 源代码如下import java.util.*;class su
 

 

    摘要:converting between applets and applicationsto convert an application to applet: create an html page with an applet tag to invoke the applet. delete the main method. alter the class header so that it e......
 ·j2sdk 1.4中的新功能类     »显示摘要«
    摘要:1. nio1.1. 说明:在新的i/o系统当中,我们将主要使用channel和buffer来描述我们底层的操作。1.2. 模型:1.3. 对channel进行读写:/** * @author cenyongh@mails.gscas.ac.cn */public class copyfile { public static void main(string[] args) throws exce......


JAVA构造函数运行解析

源代码如下import java.util.*;class super1{{  system.out.println("super1 ok");}  super1()  {    system.out.println("3");  }}

class manager extends employee{  {    system.out.println("manager ok");  }  private string department;  public manager(string n,string d){ super(n); department=d;  }} 【程序编程相关:Tomcat的class加载的优先顺序一

class employee extends super1{ private string name; private double salary=1500.00; private date birthday; public employee(string n,date dob){   system.out.println("2");   name=n;   birthday=dob; } public employee(string n){   this(n,null);   system.out.println("4"); }} 【推荐阅读:关于cookie目录的总结(JSP和Se

public class test1{  public static void main(string args[]){ new manager("smith","sales");  }}


...   下一页
 ·abstract class && interface 比较     »显示摘要«
    摘要:zz from 城市webclubabstract class和interface是java语言中对于抽象类定义进行支持的两种机制,正是由于这两种机制的存在,才赋予了java强大的面向对象能力。abstract class和interface之间在对于抽象类定义的支持方面具有很大的相似性,甚至可以相互替换,因此很多开发者在进行抽象类定义时对于abstract class和interface的选择显......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE