1. Machine language (010101) strings-----> assembly Language------> Advanced languages
Features and benefits of 2.java:
A. Simplicity B. Object-oriented C. Portability D. High-performance E. Distributed F. Dynamic G. Multithreading H. Security I. Robustness
Note Symbols in 3.java:
Note is a programmer for the reader to do some instructions to improve the readability of the code!
// This is a single-line comment Public class Student () { /* This is how good comments can write multiple lines */}
4. Identifiers (used as a name for variables, methods, and classes);
Represents a class that starts with an uppercase letter (for example: Student)
The naming rules for the notation:
A. must be in uppercase letters. Underscore _ Dollar break $ start
B. Other parts of identifiers can be letters, underscores "_", dollar Symbol "$" and any combination of numbers
C.java case sensitive, length wireless
D. Note cannot be a Java keyword
Keywords in 1.java
|
Abstract |
Assert |
Boolean |
Break |
Byte |
Case |
|
Catch |
char (character) |
Class |
Const |
Continue |
Default |
|
Do |
Double |
Else |
Extends |
Final |
Finally |
|
Float |
For |
Goto |
If |
Implements |
Import |
|
instanceof |
Int |
Interface |
Long |
Native |
New |
|
Null |
Package |
Private |
Protected |
Public |
Return |
|
Short |
Static |
Strictfp |
Super |
Switch |
Synchronized |
|
This |
Throw |
Throws |
Transient |
Try |
void |
|
Volatile |
While |
|
|
|
|
You cannot use a keyword as a variable and method name!!!!!
The History of Java!