2014年2月20日
摘要:
Java is an Object-Oriented Language. As a language that has the Object Oriented feature, Java supports the following fundamental concepts:Polymorphism (多态性)Inheritance(继承)Encapsulation (封装)Abstraction (抽象)Classes (类)Objects (对象)Instance (实例)Method (方法)Message Parsing (消息解析)In this chapter, we will l 阅读全文
摘要:
Java Modifiers(java修饰符):Like other languages, it is possible to modify classes, methods, etc., by using modifiers. There are two categories of modifiers(两类修饰):Access Modifiers(可访问):default, public , protected, privateNon-access Modifiers(不可访问):final, abstract, strictfpWe will be looking into more de 阅读全文
摘要:
1 public class MyFirstJavaProgram{2 public static void main(String[] args ){3 System.out.println("Hello World");4 } 5 6 }大小写敏感(case sensitive)——Hello和hello在java中有着不同的意义所有类名的首字母需为大写(upper case)所有方法名首字母为小写(lower case)文件名一般同类名 MyFirstJavaProgram.javapublic static void main(String args[])... 阅读全文