1. Trang chủ
  2. » Công Nghệ Thông Tin

Java 9 cookbook over 100 practical recipes to develop modern applications in java

616 217 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 616
Dung lượng 8,99 MB

Nội dung

Java Cookbook Over 100 practical recipes to develop modern applications in Java Mohamed Sanaulla Nick Samoylov BIRMINGHAM - MUMBAI Java Cookbook Copyright © 2017 Packt Publishing All rights reserved No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented However, the information contained in this book is sold without warranty, either express or implied Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals However, Packt Publishing cannot guarantee the accuracy of this information First published: August 2017 Production reference: 1180817 Published by Packt Publishing Ltd Livery Place 35 Livery Street Birmingham B3 2PB, UK ISBN 978-1-78646-140-7 www.packtpub.com Credits Author Mohamed Sanaulla Nick Samoylov Copy Editor Muktikant Garimella Reviewer Aristides Villarreal Bravo Project Coordinator Ulhas Kambali Commissioning Editor Kunal Parikh Proofreader Safis Editing Acquisition Editor Denim Pinto Indexer Rekha Nair Content Development Editor Nikhil Borkar Graphics Abhinash Sahu Technical Editor Subhalaxmi Nadar Production Coordinator Melwyn Dsa About the Authors Mohamed Sanaulla is a software developer with over years, experience in backend and full stack development He is also one of the moderators on Code Ranch (formerly known as Java Ranch) I would like to thank everyone who has helped me in the process of writing this book Nick Samoylov was born in Moscow, raised in Ukraine, and lived in the Crimea He graduated as an engineer-physicist from Moscow Institute of Physics and Technologies, has worked as a theoretical physicist, and has learned programming as a tool for testing his mathematical models using FORTRAN and C++ After the demise of the USSR, Nick created and successfully ran a software company, but was forced to close it under the pressure of governmental and criminal rackets In 1999, with his wife Luda and two daughters, he emigrated to the USA and has been living in Colorado since then Nick adopted Java in 1997 and used it for working as a software developer-contractor for a variety of companies, including BEA Systems, Warner Telecom, and Boeing For Boeing, he and his wife, also a Java programmer, developed a system of loading application data to the airplane via the internet Nick's current projects are related to machine learning and developing a highly scalable system of microservices using non-blocking reactive technologies, including Vert.x, RxJava, and RESTful webservices on Linux deployed in a cloud Nick and Luda have two daughters who graduated from Harvard and Tufts universities, respectively One has also received a doctoral degree from Brown University and now works as a professor in the University of California in Chico The other daughter is an executive director of the investment bank, JPMorgan, in Madrid, Spain In his free time, Nick likes to read (mostly non-fiction), write (fiction novels and blogs), and hike the Rocky Mountains About the Reviewer Aristides Villarreal Bravo is a Java developer, a member of the NetBeans Dream Team, and a Java User Groups leader He lives in Panama He has organized and participated in various conferences and seminars related to Java, JavaEE, NetBeans, the NetBeans platform, free software, and mobile devices He is the author of jmoordb and tutorials, and he blogs about Java, NetBeans, and web development Aristides has participated in several interviews on sites about topics such as NetBeans, NetBeans DZone, and JavaHispano He is a developer of plugins for NetBeans He is the CEO of Javscaz Software Developers He has also worked on Developers of jmoordb I would like to thank my mother, father, and all family and friends www.PacktPub.com For support files and downloads related to your book, please visit www.PacktPub.com Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy Get in touch with us at service@packtpub.com for more details At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks https://www.packtpub.com/mapt Get the most in-demand software skills with Mapt Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career Why subscribe? Fully searchable across every book published by Packt Copy and paste, print, and bookmark content On demand and accessible via a web browser Customer Feedback Thanks for purchasing this Packt book At Packt, quality is at the heart of our editorial process To help us improve, please leave us an honest review on this book's Amazon page at https://www.amazon.com/dp/1786461404 If you'd like to join our team of regular reviewers, you can e-mail us at customerreviews@packtpub.com We award our regular reviewers with free eBooks and videos in exchange for their valuable feedback Help us be relentless in improving our products! Table of Contents Preface Chapter 1: Installation and a Sneak Peek into Java Introduction Installing JDK on Windows and setting up the PATH variable How to it Installing JDK on Linux (Ubuntu, x64) and configuring the PATH variable How to it Compiling and running a Java application Getting ready How to it New features in Java How to it JEP 102 Process API updates JEP 110 HTTP/2 client JEP 213 milling project coin JEP 222: jshell the Java shell (Read-Eval-Print Loop) JEP 238 multi-release JAR files JEP 266 more concurrency updates Project Jigsaw There's more Using new tools in JDK Getting ready How to it jdeprscan jdeps jlink jmod JShell Comparing JDK and JDK Getting ready How to it See also Chapter 2: Fast Track to OOP - Classes and Interfaces Introduction Implementing object-oriented design using classes 7 8 13 13 14 14 15 17 18 18 19 20 21 21 22 23 24 24 25 25 25 25 26 26 26 27 27 27 28 29 29 30 Getting ready How to it How it works There's more See also Using inner classes Getting ready How to it How it works There's more See also Using inheritance and composition to make the design extensible Getting ready How to it How it works Composition makes the design more extensible See also Coding to an interface Getting ready How to it How it works There's more See also Creating interfaces with default and static methods Getting ready How to it How it works See also Creating interfaces with private methods Getting ready How to it How it works There's more See also Using enums to represent constant entities Getting ready How to it How it works There's more [] 31 31 32 34 35 35 35 35 37 40 40 41 41 41 42 49 50 51 51 51 53 54 56 56 56 57 59 60 60 60 60 61 62 63 63 63 65 66 67 ... ready How to it Modularizing the calculator Modularizing banking.util Modularizing math.util [] 73 75 75 77 82 83 83 84 84 90 92 92 92 93 95 95 96 96 97 99 100 101 103 106 107 107 108 1 09 1 09 111... application Getting ready How to it How it works There's more Adding effects to controls How to it How it works There's more [] 388 3 89 3 89 390 392 393 393 394 397 399 399 400 400 403 403... best to address the problem [6] Installation and a Sneak Peek into Java In this chapter, we will cover the following recipes: Installing JDK on Windows and setting up the PATH variable Installing

Ngày đăng: 04/03/2019, 10:45

TỪ KHÓA LIÊN QUAN