June 2017
Beginner
1296 pages
69h 23m
English
In JShell:
A main method is not required.
Semicolons are not required on standalone statements.
Variables do not need to be declared in classes or in methods.
Methods do not need to be declared inside a class’s body.
Statements do not need to be written inside methods.
Redeclaring a variable, method or type simply drops the prior declaration and replaces it with the new one, whereas the Java compiler normally would report an error.
You do not need to catch exceptions, though you can if you need to test exception handling.
JShell ignores top-level access modifiers (public, private, protected, static, final)—only abstract (Chapter 10) is allowed as a class modifier.
The synchronized ...
Read now
Unlock full access