没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Juneau
US $ 59.99
Shelve in
Programming Languages/Java
User level:
Intermediate–Advanced
www.apress.com
SOURCE CODE ONLINE
BOOKS FOR PROFESSIONALS BY PROFESSIONALS
®
Java 8 Recipes
Java 8 Recipes offers solutions to common programming problems encountered
while developing Java-based applications. Fully updated with the newest features
and techniques available, Java 8 Recipes provides code examples involving
Lambdas, embedded scripting with Nashorn, the new date-time API, stream
support, functional interfaces, and much more. Special emphasis is given to
features such as lambdas that are newly introduced in Java 8. Content is presented
in the popular problem-solution format: Look up the programming problem that
you want to solve. Read the solution. Apply the solution directly in your own code.
Problem solved!
The problem-solution approach sets Java 8 Recipes apart. Java 8 Recipes
is focused less on the language itself and more on what you can do with it that is
useful. The book respects your time by always focusing on a task that you might want
to perform using the language. Solutions come first. Explanations come later. You are
free to crib from the book and apply the code examples directly to your own projects.
SECOND
EDITION
RELATED
9781430 268277
55999
ISBN 978-1-4302-6827-7
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.
v
Contents at a Glance
About the Author ................................................................................................................xli
About the Technical Reviewers ........................................................................................xliii
Acknowledgments ............................................................................................................. xlv
Introduction ..................................................................................................................... xlvii
Chapter 1: Getting Started with Java 8 N .............................................................................1
Chapter 2: New Features of Java 8 N ..................................................................................29
Chapter 3: Strings N ............................................................................................................49
Chapter 4: Numbers and Dates N ........................................................................................65
Chapter 5: Object-Oriented Java N .....................................................................................97
Chapter 6: Lambda Expressions N ....................................................................................133
Chapter 7: Data Structures and Collections N ..................................................................153
Chapter 8: Input and Output N ..........................................................................................187
Chapter 9: Exceptions and Logging N ...............................................................................207
Chapter 10: Concurrency N ...............................................................................................223
Chapter 11: Debugging and Unit Testing N .......................................................................249
Chapter 12: Unicode, Internationalization, and Currency Codes N ...................................263
Chapter 13: Working with Databases N ............................................................................283
Chapter 14: JavaFX Fundamentals N ................................................................................331
Chapter 15: Graphics with JavaFX N ................................................................................405
Chapter 16: Media with JavaFX N .....................................................................................445
N CONTENTS AT A GLANCE
vi
Chapter 17: JavaFX on the Web N .....................................................................................473
Chapter 18: Nashorn and Scripting N ...............................................................................505
Chapter 19: E-mail N .........................................................................................................527
Chapter 20: XML Processing N .........................................................................................537
Chapter 21: Networking N ...............................................................................................553
Chapter 22: Security N ......................................................................................................571
Index .................................................................................................................................579
xlvii
Introduction
e Java programming language was introduced in 1995 by Sun Microsystems. Derived from languages such as
C and C++, Java was designed to be more intuitive and easier to use than older languages, specically due to its
simplistic object model and automated facilities such as memory management. At the time, Java drew the interest
of developers because of its object oriented, concurrent architecture; its excellent security and scalability; and
because applications developed in the Java language could run on any operating system that contained a Java Virtual
Machine (JVM). Since its inception, Java has been described as a language that allows developers to “write once, run
everywhere” as code is compiled into class les that contain bytecode, and the resulting class les can run on any
compliant JVM. is concept made Java an immediate success for desktop development, which later branched o into
dierent technological solutions over the years, including development of web-based applications and rich Internet
applications (RIAs). Today, Java is deployed on a broad range of devices, including mobile phones, printers, medical
devices, Blu-ray players, and so on.
e Java platform consists of a hierarchy of components, starting with the Java Development Kit (JDK), which
is composed of the Java Runtime Environment (JRE), the Java programming language, and platform tools that are
necessary to develop and run Java applications. e JRE contains the Java Virtual Machine (JVM), plus the Java
application programming interfaces (APIs) and libraries that assist in the development of Java applications. e JVM
is the base upon which compiled Java class les run and is responsible for interpreting compiled Java classes and
executing the code. Every operating system that is capable of running Java code has its own version of the JVM. To that
end, the JRE must be installed on any system that will be running local Java desktop or stand-alone Java applications.
Oracle provides JRE implementations for most of the major operating systems. Each operating system can have its
own avor of the JRE. For instance, mobile devices can run a scaled down version of the full JRE that is optimized
to run Java Mobile Edition (ME) and Java SE embedded applications. e Java platform APIs and libraries are a
collection of predened classes that are used by all Java applications. Any application that runs on the JVM makes
uses the Java platform APIs and libraries. is allows applications to use the functionality that has been predened
and loaded into the JVM and leaves developers with more time to worry about the details of their specic application.
e classes that comprise the Java platform APIs and libraries allow Java applications to use one set of classes in order
to communicate with the underlying operating system. As such, the Java platform takes care of interpreting the set
of instructions provided by a Java application into operating system commands that are required for the machine on
which the application is being executed. is creates a facade for Java developers to write code against so that they can
develop applications that can be written once and ran on every machine that contains a relevant JVM.
e JVM and the Java platform APIs and libraries play key roles in the lifecycle of every Java application. Entire
books have been written that explore the platform and JVM. is book focuses on the Java language itself, which is
used to develop Java applications, although the JVM and Java platform APIs and libraries are referenced as needed.
e Java language is a robust, secure, and modern object oriented language that can be used to develop applications
to run on the JVM. e Java programming language has been rened over several iterations and it becomes more
powerful, secure, and modern with each new release. is book covers many features of the Java programming
language from those that were introduced in Java 1.0 through those that made their way to the language in Java 8.
In 2014, Oracle Corporation released Java 8, which was another milestone release for the Java ecosystem. Not only was
Java already the most modern, statically typed, object oriented language available for development, but Java 8 adds
important new enhancements to the language, such as lambda expressions, streams processing, and default methods.
JavaFX 8 was also released at the same time, advancing desktop Java applications more than ever. JavaFX 8 can be
used for developing rich desktop and Internet applications using the Java language, or any other language that runs
剩余626页未读,继续阅读
资源评论
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- .archivetemp04 - 继承和多态 作业.doc
- 基于运动学车辆模型的开放式驾驶MPC横向控制算法Analyzed commaai Openpilot MPC lateral c
- STM32F103单片机源码STM32-74HC595串转并控制数码管显示
- python语言教程项目案例
- 斐波那契数列java代码 FibonacciProblem
- 服务器的概要介绍与分析
- logseq-linux包
- 蓝色简历首页的微信小程序模板源码
- 基于MPC的仿真轨迹跟踪模块MPC-based Simulink trajectory tracking module
- 递归地求解Fibonacci数列.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功