随笔分类 -  Java

Java
摘要:Java基础知识篇: 一、关键字解释 1. final:修饰非抽象类,非抽象方法和属性, 以及修饰方法参数,代表“无法改变的”。出于对设计或者效率的考虑使用该关键字。 final类无法被继承,final类中的方法也为final。 final方法不能被覆盖,但可以继承 final常量只能被赋值一次,不 阅读全文
posted @ 2017-01-16 14:12 仰望星辰 阅读(301) 评论(0) 推荐(0)
摘要:在java中,在多语言国际化时可以用 *.java 类来作为资源文件使用。1. 首先定义类, 类必须继承ListResourceBundle类所在路径为: src/I18N 1 public class myMessage_en_US extends ListResourceBundle { 2 ... 阅读全文
posted @ 2014-09-28 17:24 仰望星辰 阅读(2812) 评论(0) 推荐(0)
摘要:Basic Knowlege points:1: it's necessary that there is only one public class in per .java file2: .java file name should better to same as class name3: ... 阅读全文
posted @ 2014-09-28 11:30 仰望星辰 阅读(267) 评论(0) 推荐(0)