LINUKS BLOG

Make progress is the topic for ever...

My Photo
Name:
Location: China

It's a fans of computer/ Computer is my favorite/ Making progress is the topic for ever...

Tuesday, May 29, 2007

构造器Constructor是否可被override?

24.Question:

构造器Constructor是否可被override?

Answer:

构造器Constructor不能被继承,因此不能重写Overriding,但可以被重载Overloading。

Yesterday:

先做最主要的...

做事要有计划...

Monday, May 28, 2007

run() OR start()

23.Question:

启动一个线程是用run()还是start()?

Answer:

启动一个线程是调用start()方法,使线程所代表的虚拟处理机处于可运行状态,这意味着它可以由JVM调度并执行。这并不意味着线程就会立即运行。run()方法可以产生必须退出的标志来停止一个线程。

Yesterday:

先去做最重要的事...

Friday, May 25, 2007

接口是否可继承接口?

22.Question:

接口是否可继承接口? 抽象类是否可实现(implements)接口? 抽象类是否可继承实体类(concrete class)?

Answer:

接口可以继承接口。抽象类可以实现(implements)接口,抽象类是否可继承实体类,但前提是实体类必须有明确的构造函数。

Yesterday:

...

Tiny find:

...

Tuesday, May 22, 2007

Yesterday:

Had a talk with the old classmate.There is no passion like just graduate from the school.He liked playing basketball with me in the school.But, now ,in the different city far away.And it's difficult to meet now. The job is not like the aspersion when graduated from the school.We were talking more on the internet.I asked that if you find the other part of your life.He expressed some shame with this question. I feel that he didn't have the idea of the private question.We are not still small,work need harder,study need efforts,and the private question need think of.

Tiny find :

...

Monday, May 21, 2007

无题....

Friday, May 18, 2007

abstract的method

21.Question:

abstract的method是否可同时是static,是否可同时是native,是否可同时是synchronized?

Answer:

都不能

Yesterday:

I have take part in the 50 years congratulations party of hebi in the new technology area.There are so many people in the big square to move as you like.It 's passion square party of CCTV.And LiuLu take charge of the party.More, the songer of "kuailelaojia" ChenMing,the Singer of "zhongguogongfu" tuhonggang,and so on. Have taken part in the party.

Tiny:

The famous persons on the platform of singing have more power to earn money than the common person like me.Three hundred thousand for the few minute on the stage.But what mean for a common person, the three hundred is 30 years' hard work.Why? why the social so unfair to the common people like me? The reason is simple, if you think use your mind silence. You don't control the primary popular in the most people.

As long as you do the thing as the most people want ,you will get the most from the most people.

Tuesday, May 15, 2007

昨天的学习心得:
昨天主要是学习了那个日历程序的原理.并且自己根据其中的知识点来进行了实践和编程.我也从中了解到了学习编程并不是一种困难的事情,更多的时候要的是能够理清思路,知道当前在做什么,并且能够从别的地方,包括书本上借来一些知识进行巩固和掌握.
我不了解别的编程语言是怎么样的,初步了解到JAVA编程应该是一种根据API文档,会查阅并能够看明白.就像是字典,从上面找到你想要的东西,并且能够自己将之组合成一篇优美的文章.所谓写文章,就是说在开始的时候不要太过于操之过急,文章是有段落组成,段落是有句子组成,句子是由词语组成,最为重要的是一步一步来,按部就班.等词语熟悉了,也会写句子了,等会写句子了,自然也会组段落了.那么那时候写文章也就不是件难事了.
但是写程序和写文章又有不同的一面是,写程序要有严格的逻辑思维,而写文章则不然,所以说文章可以写成散文,而程序看起来就有些死般了.
另外写程序要的学会算法,不光是要记住,更重要的是能够理解,并在实际用的时候能够很快的写出来.

Some small knowledge in the study process

calendar.set(Calendar.DAY_OF_MONTH, 1);//设置当前日历的数值.

Dimension size=Toolkit.getDefaultToolkit().getScreenSize(); //获取屏幕大小
System.out.println("ScreenSize:"+size);

result: java.awt.Dimension[width=1024,height=768]

变量名的第一个单词的第一个字母为小写.(习惯)

Render: 渲染器

JTabledPane 选项卡

addTab();

有些时候,一些程序的段落是很难理解的,但是不要求之过急,不会的地方可以先记下来的.只要在潜意识中记得这个不懂的知识点,早晚会有一天知道它是怎么会事的.世上没有不能理解的东西,只有尚未理解的东西.

Monday, May 14, 2007

Learn to remember.

Sometimes,i hate remember something. It's thinking of that there's no need to remember.But i become to recognize it was right as the time fly.If you don't use something frequently, you will be unfamiliar with it as the time fly.

Begin to learn to remember thing ,though something has no value to remember. As long as you usually practise the remember,you can use it as you like in the final. Have a try to recall the remember of the yesterday, you can find it has more thing you need to do ,and can receive the more you want.

Saturday, May 12, 2007

Yesterday:

Have no gravest yesterday.One day and one day,there's no improve, no progress.Sun raise in the east and Sun set in the west.Maybe it is life.Although i dislike the life like this,but i have no action to over it.

Tiny find :

Make a plan, a plan may help you get a fresh life as you like.

Thursday, May 10, 2007

abstract class和interface有什么区别?

20.Question:

abstract class和interface有什么区别?

Answer:

声明方法的存在而不去实现它的类被叫做抽象类(abstract class),它用于要创建一个体现某些基本行为的类,并为该类声明方法,但

不能在该类中实现该类的情况。不能创建abstract 类的实例。然而可以创建一个变量,其类型是一个抽象类,并让它指向具体子类的一个实例

。不能有抽象构造函数或抽象静态方法。Abstract 类的子类为它们父类中的所有抽象方法提供实现,否则它们也是抽象类为。取而代之,在子

类中实现该方法。知道其行为的其它类可以在类中实现这些方法。

  接口(interface)是抽象类的变体。在接口中,所有方法都是抽象的。多继承性可通过实现这样的接口而获得。接口中的所有方法都是抽

象的,没有一个有程序体。接口只可以定义static final成员变量。接口的实现与子类相似,除了该实现类不能从接口定义中继承行为。当类

实现特殊接口时,它定义(即将程序体给予)所有这种接口的方法。然后,它可以在实现了该接口的类的任何对象上调用接口的方法。由于有

抽象类,它允许使用接口名作为引用变量的类型。通常的动态联编将生效。引用可以转换到接口类型或从接口类型转换,instanceof 运算符可

以用来决定某对象的类是否实现了接口。

Yesterday:

I work in the office as usual yesterday. And all things developing smoothly as usual. I don't have any idea about the silent life.But the meanwhile i find many things out of my control.A workmate stopped me and talked with me of some unimportant questions.And i don't know the orient of the thing's development.

Tiny find:

Don't advise yourself to control everything,control the small thing is enough.

学会适应,学会学习,学会挤时间

很长时间以来,我都是这样以为的.只有充足的大块时间才算是有时间.可是说实在话,要是真的有了充足的大量时间,我反倒是不会用了.一有了充足的大师时间,我会觉得时间太多,闲得无聊,没屁事干.就有了事,只要是觉得在一段时间内不能够很快的做完,就会很浮躁,这就是我,我不想说是很多人的通病.而真的平时就没有时间嘛?凭良心说话,不是这样的.平时有了事干,就是没时间,可是事真的那么多嘛?不是的.又不是什么国家总理,那会有那么多的事情要做呢?就真的是总理,人家不也有休闲,娱乐,包括学习的时间嘛!其实很多时候不是没有时间,当然更不是事多.多的是自己没有合理的安排,没有一个目标,没有一个计划.这才是真的原因所在.不是早就学过什么统筹方法吗?不也知道,在烧水的时候可以借用这段时间来看个书,换个衣服之类的嘛.关键问题,不是没有时间,而是把大好的时间白白的给浪费了.还有更多的时候,我会这样做事的.每天看到什么做什么,比如说:当我看到衣服没洗的时候,我会突然间心血来潮地去洗衣服,当我正在洗衣服的时候,我会因突然间接了个电话,而去玩起了游戏.这样一来,半天过去了,衣服还是没有洗.更多的脑力花在了没有意义的事情上去了.从来没有想过,玩游戏,我只玩十分钟,过了十分钟后,我要去洗衣服,或者是我想要去做的事情.这就是为什么我没有成功.或者说没有一点成就至到我已经过了24个春秋之后的原因吧@!工作之后,我感觉到的更加是乱七八糟的事情比较多,比较杂.而我呢?不是去学习那种乱中求静的本领,更多的是抱怨自己没有时间.有些时间不怨别人,也不怨环境,都是我一个人的错.错就错在自己生活的不用心,不用脑.太会随遇而安了.

Learn to hold the primary topic

As long as i have time , the first thing i have to do is the most important thing. Although i will be disturbed by the accident things when i am doing the important thing. And i must stop the thing in hand. But the important thing is i need continue doing the important thing before the thing had been done.

Above all,

1. Run to you primary topic straightly

2. Can't forget to continue doing the topic until i have done it.

3. Don't do the unimportant things before you begin to do my topic ,though it 's small and easy.

Wednesday, May 09, 2007

Record my own notes

Sometimes, I feel lonely.I want to record something on my blog.

Recently, i come to touch the book for the coming master test. I don't know how many of the successed ratio i have.But i know if i want something, and by heart, i will get it in the finally.

Last year's experience let me know as long as you want to pass,you should give you efforts 100%.

Although the math is difficault ,but not be worth me give all my time to it .Don't give up anything, as long as it is having the value to you.

English is important for the master test.

Monday, May 07, 2007

List, Set, Map是否继承自Collection接口?

19.Question:

List, Set, Map是否继承自Collection接口?

Answer:

List,Set是

   Map不是

Yesterday:

Don't show the sorrow face to other.Especial the person you are familar with. Give the happy to other ,though you are not happy sometime.

Tiny find:

...

Wednesday, May 02, 2007

error和exception有什么区别?

18.Question:

error和exception有什么区别?

Answer:

error 表示恢复不是不可能但很困难的情况下的一种严重问题。比如说内存溢出。不可能指望程序能处理这样的情况。

  exception 表示一种设计或实现问题。也就是说,它表示如果程序运行正常,从不会发生的情况。

Yesterday:

extends JFrame 或者继承别的几个组件
Container c=getContentPane();
c.setLayout(new BorderLayout());

Tiny find:

Don't think any tiny phenomenon is simple.And need research the theorem of it why?

Some time ,needn't research the deeper theorem ,but have to know the basic knowledge which use frequently.