火烧径-make life easier

共1页 1
  • 2005年01月28日

    Hibernate - XDoclet Tutorial

    Tag:Java

    http://www.downside.ch/hibernate/
    The tutorial covers the generation of Hibernate mapping files with XDoclet. If you are new to the Hibernate/XDoclet combo and want to have a glimpse into the world of ORM tools or you are just interested in some mapping examples then this is for you.

    fireshort 发表于17时40分38秒 | 阅读全文 | 评论 0 | 引用2 | 编辑 | 分享 0
  • 2005年01月28日

    blogbus改版了

    Tag:Default
    太久没来了,都不知道已经改版了,好像变得更简洁实用了。不过还不够稳定,时不时的就上不了;而且清新模版的图片有错,http://www.blogbus.com/blogbus/blog/images/templates/cube.gif
    应该为http://www.blogbus.com/blogbus/blog/images/cube.gif
    fireshort 发表于11时21分00秒 | 阅读全文 | 评论 0 | 引用2 | 编辑 | 分享 0
  • 2005年01月10日

    纠错

    Tag:Java

    看到一篇文章:[JAVA]初学者的经验---为什么变量无法使用

    昨天试了一天

    public class temp

    {

    public String s=“hello“;

    public static void main(String[] args)

         System.out.println(s);

    }

    为什么总是执行不了,查了大量的资料(....)发现原来JAVA在加载时,先加载static的内容之后再加载其它,所以在打印时变量仍未声明,因而会出错。

    呵呵,初学者会常犯的错误。

    其实这种说法完全是错的,原文那里发不了评论,在这里说明一下,免得误导初学者。

    不是这个原因,原因是s是实例变量,没有对象的话,是不能引用实例变量的。
    你在main里面这样就可以了:
    temp t = new temp();
    System.out.println(t.s);

    fireshort 发表于16时11分55秒 | 阅读全文 | 评论 2 | 引用2 | 编辑 | 分享 0

Tag

  • Java[33]
  • Default[16]
  • DB[11]
  • soft[11]
  • shark非官方FAQ[10]
More..

存档

  • 2003/01/01-2004/06/01
  • 2004/06/01-2004/07/01
  • 2004/07/01-2004/08/02
  • 2004/08/03-2004/09/02
  • 2004/09/01-2004/10/02
  • 2004/10/03-2004/11/01
  • 2004/11/01-2004/12/01
  • 2005/01/01-2005/01/31
  • 2005/02/01-2005/02/28
  • 2005/03/01-2005/03/31
  • 2005/04/01-2005/04/30
  • 2005/05/01-2005/05/31
  • 访问统计:
  • RSS 什么是RSS?
    用IM提醒我内容更新
    订阅到QQ邮箱
    订阅到鲜果阅读器
    订阅到Google阅读器
    订阅到抓虾阅读器
  • 《城客》第四期:创意之城
    博客大巴
    博客大巴使用指南
    博客大巴模板中心
    免费注册博客大巴
    一键博客搬家工具
    中文互动杂志城客
Copyright © 2002-2009 BlogBus.com, All Rights Reserved. 博客大巴 版权所有