[JAVA][Java Quick Syntax Reference].pdf
(
3291 KB
)
Pobierz
www.it-ebooks.info
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
www.it-ebooks.info
Contents at a Glance
About the Author �����������������������������������������������������������������������������
�
xi
Introduction �����������������������������������������������������������������������������������
�
xiii
■
Chapter 1: Hello World
�������������������������������������������������������������������
�
1
■
Chapter 2: Compile and Run
����������������������������������������������������������
�
3
■
Chapter 3: Variables
����������������������������������������������������������������������
�
5
■
Chapter 4: Operators
���������������������������������������������������������������������
�
9
■
Chapter 5: String
�������������������������������������������������������������������������
�
13
■
Chapter 6: Arrays
������������������������������������������������������������������������
�
15
■
Chapter 7: Conditionals
���������������������������������������������������������������
�
19
■
Chapter 8: Loops
��������������������������������������������������������������������������
�
21
■
Chapter 9: Methods
���������������������������������������������������������������������
�
25
■
Chapter 10: Class
������������������������������������������������������������������������
�
29
■
Chapter 11: Static
������������������������������������������������������������������������
�
35
■
Chapter 12: Inheritance
���������������������������������������������������������������
�
39
■
Chapter 13: Overriding
����������������������������������������������������������������
�
41
■
Chapter 14: Packages and Import
�����������������������������������������������
�
45
■
Chapter 15: Access Levels
�����������������������������������������������������������
�
47
■
Chapter 16: Constants
�����������������������������������������������������������������
�
51
■
Chapter 17: Interface
�������������������������������������������������������������������
�
53
iii
www.it-ebooks.info
■
Contents at a GlanCe
■
Chapter 18: Abstract
�������������������������������������������������������������������
�
57
■
Chapter 19: Enum
������������������������������������������������������������������������
�
59
■
Chapter 20: Exception Handling
��������������������������������������������������
�
61
■
Chapter 21: Boxing and Unboxing
�����������������������������������������������
�
65
■
Chapter 22: Generics
�������������������������������������������������������������������
�
67
Index�����������������������������������������������������������������������������������������������
�
73
iv
www.it-ebooks.info
Introduction
Java is a high-level object-oriented programming language developed by Sun
Microsystems, which became part of Oracle Corporation in 2010. he language is
very similar to C++, but has been simpliied to make it easier to write bug free code.
Most notably, there are no pointers in Java, instead all memory allocation and deallocation
is handled automatically.
Despite simpliications like this Java has considerably more functionality than both
C and C++, due to its large class library. Java programs also have high performance and
can be made very secure, which has contributed to making Java the most popular general
purpose programming language in use today.
Another key feature of Java is that it is platform independent. his is achieved by only
compiling programs half-way, into platform independent instructions called bytecode.
he bytecode is then interpreted, or run, by the Java Virtual Machine (JVM). his means
that any system that has this program and its accompanying libraries installed can run
Java applications.
here are three class libraries available for the Java programming language:
Java ME, Java SE and Java EE. Java ME (Mobile Edition) is a stripped down version of
Java SE (Standard Edition), while Java EE (Enterprise Edition) is an extended version
of Java SE that includes libraries for building web applications.
he Java language and class libraries have undergone major changes since their
initial release in 1996. he naming conventions for the versions have gone through a few
revisions as well. he major releases include: JDK 1.0, JDK 1.1, J2SE 1.2, J2SE 1.3, J2SE 1.4,
J2SE 5.0, Java SE 6 and Java SE 7, which is the current version as of writing.
After J2SE 1.4 the version number was changed from 1.5 to 5.0 for marketing
reasons. As of J2SE 5.0, there is one version number for the product and another one used
internally by the developers. J2SE 5.0 is the product name, while Java 1.5 is the developer
version. Similarly, Java SE 7 is the product and Java 1.7 the internal version number. For
simplicity’s sake, the Java versions will be referred to as Java 1-7 in this book. Note that
Java is designed to be backwards compatible. hus the Virtual Machine for Java 7 can still
run Java 1 class iles.
xiii
www.it-ebooks.info
Plik z chomika:
nimtiz
Inne pliki z tego folderu:
[HTML][HTML5 Canvas. Graphics. Animation and Game Development].pdf
(29804 KB)
[CSS][CSS3 Foundations].pdf
(23466 KB)
[JAVASCRIPT][Professional AngularJS].pdf
(21169 KB)
[HTML][HTML5 Foundations].pdf
(32597 KB)
[JAVASCRIPT][Beginning JavaScript Charts].pdf
(19671 KB)
Inne foldery tego chomika:
Books
Fruity Loops
Prywatne
Virtual Machines
Workout Books
Zgłoś jeśli
naruszono regulamin