Begin to read Java Language Specification(preface - chapter 1)

Why Should every Javaer read Java Language Specification ?

Java Language Specification is wrote by some excellent programmers including James Gosling, who is the father of Java. The Spec describes some basic and import concepts in Java , like packages, classes and interfaces. When I wrote first Java code, some tutorials and books helped me. However, those tutorials and books are not the root of Java knowledge, this Java Language Specification is .

Some knowledges about Java won’t be mentioned in other books, but can be found in Java Language Specification, and you can believe in these descriptions . Sometimes, I found some mistakes in some Java books , it is very harmful for beginner to learn Java. Java Language Specification must be read so that you can correct some details you learned.

When a class is no longer needed, it may be unloaded.

I know class loading, but never know about class unloading. Chapter 12 tells me that. I guess , I will get more valuable points while traveling the specification.

Preface And Chapter 1 in Spec

The preface describes the most important three features in Java 8 :

  • lambda expressions
  • method references
  • functional interfaces

These features are given in Java 8, with compiler javac upgrading and Java standard libraries supporting.

And chapter 1 describes the organization of the specification which shows what each chapter talks about. At the same time, a 'hello world’ code snippet has been shown to us :

class Test {
    public static void main(String[] args) {
        for (int i = 0; i < args.length; i++)
            System.out.print(i == 0 ? args[i] : " " + args[i]);
        System.out.println();
    }
}

That’s all.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容