Professional Documents
Culture Documents
Java Language Features: With Modules, Streams, Threads, I/O, and Lambda Expressions 2nd Edition Kishori Sharan
Java Language Features: With Modules, Streams, Threads, I/O, and Lambda Expressions 2nd Edition Kishori Sharan
Java Language Features: With Modules, Streams, Threads, I/O, and Lambda Expressions 2nd Edition Kishori Sharan
https://ebookmeta.com/product/cambridge-igcse-and-o-level-
history-workbook-2c-depth-study-the-united-states-1919-41-2nd-
edition-benjamin-harrison/
https://ebookmeta.com/product/more-java-17-an-in-depth-
exploration-of-the-java-language-and-its-features-3rd-edition-
kishori-sharan/
https://ebookmeta.com/product/more-java-17-an-in-depth-
exploration-of-the-java-language-and-its-features-3rd-edition-
kishori-sharan-2/
https://ebookmeta.com/product/scripting-in-java-integrating-with-
groovy-and-javascript-1st-edition-kishori-sharan/
Beginning Java 17 Fundamentals Object Oriented
Programming in Java 17 3rd Edition Kishori Sharan
https://ebookmeta.com/product/beginning-java-17-fundamentals-
object-oriented-programming-in-java-17-3rd-edition-kishori-
sharan/
https://ebookmeta.com/product/beginning-java-17-fundamentals-
object-oriented-programming-in-java-17-3rd-edition-kishori-
sharan-2/
https://ebookmeta.com/product/functional-programming-in-java-
harnessing-the-power-of-java-8-lambda-expressions-1st-edition-
venkat-subramaniam/
https://ebookmeta.com/product/learn-javafx-17-building-user-
experience-and-interfaces-with-java-sharan/
https://ebookmeta.com/product/programming-aws-lambda-build-and-
deploy-serverless-applications-with-java-1st-edition-john-chapin/
Kishori Sharan
While the advice and information in this book are believed to be true
and accurate at the date of publication, neither the authors nor the
editors nor the publisher can accept any legal responsibility for any
errors or omissions that may be made. The publisher makes no
warranty, express or implied, with respect to the material contained
herein.
Audience
This book is designed to be useful to anyone who wants to learn the
Java programming language. If you are a beginner, with little or no
programming background in Java, you are advised to read the
companion book, Beginning Java 9 Fundamentals, before reading
this book. This book contains topics of various degrees of
complexity. As a beginner, if you find yourself overwhelmed while
reading a section in a chapter, you can skip to the next section or
the next chapter, and revisit it later when you gain more experience.
If you are a Java developer with an intermediate or advanced
level of experience, you can jump to a chapter or to a section in a
chapter directly. If a section covers an unfamiliar topic, you need to
visit that topic before continuing the current one.
If you are reading this book to get a certification in the Java
programming language, you need to read almost all of the chapters,
paying attention to all of the detailed descriptions and rules. Most of
the certification programs test your fundamental knowledge of the
language, not the advanced knowledge. You need to read only those
topics that are part of your certification test. Compiling and running
over 390 complete Java programs will help you prepare for your
certification.
If you are a student who is attending a class in the Java
programming language, you should read the chapters of this book
selectively. Some topics—such as lambda expressions, collections,
and streams—are used extensively in developing Java applications,
whereas other topics—such as threads and archive files—are
infrequently used. You need to read only those chapters that are
covered in your class syllabus. I am sure that you, as a Java student,
do not need to read the entire book page by page.
Restriction #1
Restriction #2
Restriction #3
Restriction #4
Restriction #5
Restriction #6
Using Annotations
Primitive Types
String Types
Class Types
Enum Type
Annotation Type
Array Type Annotation Element
Meta-Annotation Types
Deprecating APIs
Overriding Methods
Annotating Packages
Annotating Modules
Summary
Chapter 3:Reflection
What Is Reflection?
Reflection in Java
Loading a Class
Class Loaders
Reflecting on Classes
Reflecting on Fields
Reflecting on Executables
Reflecting on Methods
Reflecting on Constructors
Creating Objects
Invoking Methods
Accessing Fields
Deep Reflection
Reflecting on Arrays
Expanding an Array
Summary
Chapter 4:Generics
Supertype-Subtype Relationship
Raw Types
Unbounded Wildcards
Upper-Bounded Wildcards
Lower-Bounded Wildcards
Heap Pollution
Varargs Methods and Heap Pollution Warnings
Summary
Declaring No Parameters
Target Typing
Functional Interfaces
Constructor References
Lexical Scoping
Variable Capture
Comparing Objects
Summary
Chapter 6:Threads
What Is a Thread?
A Quick Example
Using Multiple Threads in a Program
Atomicity
Visibility
Ordering
Rule #1
Rule #2
Lifecycle of a Thread
Priority of a Thread
Is It a Demon or a Daemon?
Am I Interrupted?
Volatile Variables
Stopping, Suspending, and Resuming Threads
Spin-Wait Hints
Atomic Variables
Explicit Locks
Synchronizers
Semaphores
Barriers
Phasers
Latches
Exchangers
Result-Bearing Tasks
Scheduling a Task
A Fork/Join Example
Thread-Local Variables
Summary
Chapter 7:Input/Output
What Is Input/Output?
Copying a File
BufferedInputStream
PushbackInputStream
PrintStream
Using Pipes
Object Serialization
Serializing Objects
Deserializing Objects
Stopping Serialization
Summary
Data Compression
Checksum
Summary
What Is NIO?
Buffers
Read-Only Buffers
Character Set
Channels
Reading/Writing Files
File Locking
Summary
Comparing Paths
Symbolic Links
Deleting Files
Matching Paths
Summary
Scultura.
Per completare quanto è attinente alla scultura nel suo più esteso
significato, dovrei dire delle gemme. Qualche cenno ne ho fatto non
ha guari più sopra, parlando della glittica, e per non entrare in
maggiori particolari, ai quali assai si presterebbe il Museo Nazionale
di Napoli, per quanti oggetti si raccolsero negli scavi d’Ercolano e
Pompei, mi basti riassumerne in concetto generale il discorso; che
cioè anche in questo ramo dell’arte i Romani furono dapprima
imitatori de’ Greci, adottandone i soggetti e desumendoli da fatti