Search This Blog

Saturday, March 31, 2018

Beginning Spring Boot 2: Applications and Microservices with the Spring Framework review



Learn Spring Boot and how to build Java-based enterprise, web, and microservice applications with it. In this book, you'll see how to work with relational and NoSQL databases, build your first microservice, enterprise, or web application, and enhance that application with REST APIs. You'll also learn how to build reactive web applications using Spring Boot along with Spring Web Reactive. Then you’ll secure your Spring Boot-created application or service before testing and deploying it.

After reading and learning with Beginning Spring Boot 2, you'll have the skills and techniques to start building your first Spring Boot applications and microservices with confidence to take the next steps in your career journey.

What You'll Learn

  • Use Spring Boot autoconfiguration
  • Work with relational and NoSQL databases
  • Build web applications with Spring Boot
  • Apply REST APIs using Spring Boot
  • Create reactive web applications using Spring Web Reactive
  • Secure your Spring Boot applications or web services
  • Test and deploy your Spring Boot applications


Who This Book Is For

Experienced Java and Spring Framework developers who are new to the new Spring Boot micro-framework.





Read more...

Spring Boot: How To Get Started and Build a Microservice review



Please buy the heavily revised second edition: enter B076BNFL5P in the search box


All feedback given in the reviews is integrated in the second edition.


Learn to build your first Spring Boot application with an actionable and hands-on approach in just a few hours!

Learning new technology can be fast and fun. With this custom tailored learning plan you get a head start and learn step by step to build microservices with Spring Boot by actually building one.



In a few hours, you have built your first microservice with Spring Boot and moved to a new level while other developers are still wading through hundreds of pages of a fluffy compendium telling them everything about Spring Boot and still leaving them back with no clue.



We build a real application (less than 850 lines of code though) using a standard Maven project structure together, and I will explain you the steps and libraries involved on the go.



You learn best by coding. The way I love learning too.



What you will build:

We build a Microservice for storing comments and providing a REST Interface for interacting with the data. The sample application is modeled after a real production application to guide you through building your first Spring Boot application.




What you will learn:
  • How to build a microservice with Spring Boot 1.5.x
  • How to work with a relational database using the Spring Data JPA Framework
  • How to write the REST API using Spring MVC
  • How to create a service layer and integrate a legacy library using its own Spring ApplicationContext in an XML file
  • How to test the application
  • A simple way to secure you application
  • How to use monitoring and health check out of the box with Spring Boot
  • How to deploy your application

This book is for you when
  • you have experience with Java and want to learn Spring Boot
  • you already work with the Spring Framework, but you are new to Spring Boot
  • you love building applications and learning new technologies

It is NOT for you if
  • your most advanced program was HelloWorld
  • you like reading fluffy compendiums
  • you don't know the Java language at all

And if you have questions, do not hesitate and contact me using the email address at the end of the book. I'll answer your questions and improve the book with your feedback.



Updates:
- 6th April: Revised testing sections and code, updated to Spring Boot 1.5.2
- 11th February: Updated book and source code to Spring Boot 1.5.1 and added section about the log level changing during runtime.




Read more...

Thursday, March 29, 2018

Pro Spring 5: An In-Depth Guide to the Spring Framework and Its Tools review



Master Spring basics and core topics, and share the authors’ insights and real–world experiences with remoting, Hibernate, and EJB. Beyond the basics, you'll learn how to leverage the Spring Framework to build the various tiers and parts of an enterprise Java application: transactions, web and presentation tiers, deployment, and much more. A full sample application allows you to apply many of the technologies and techniques covered in Pro Spring 5 and see how they work together.

This book updates the perennial bestseller with the latest that the new Spring Framework 5 has to offer. Now in its fifth edition, this popular title is by far the most comprehensive and definitive treatment of Spring available. It covers the new functional web framework and interoperability with Java 9.

After reading this definitive book, you'll be armed with the power of Spring to build complex Spring applications, top to bottom.

The agile, lightweight, open-source Spring Framework

continues to be the de facto leading enterprise Java application development framework for today's Java programmers and developers. It works with other leading open-source, agile, and lightweight Java technologies such as Hibernate, Groovy, MyBatis, and more. Spring now works with Java EE and JPA 2 as well.

What You'll Learn

  • Discover what’s new in Spring Framework 5
  • Use the Spring Framework with Java 9
  • Master data access and transactions 
  • Work with the new functional web framework 
  • Create microservices and other web services 

Who This Book Is For

Experienced Java and enterprise Java developers and programmers. Some experience with Spring highly recommended.  






Read more...

Spring 5 Design Patterns: Master efficient application development with patterns such as proxy, singleton, the template method, and more review



Key Features

  • Explore best practices for designing an application
  • Manage your code easily with Spring's Dependency Injection pattern
  • Understand the benefits that the right design patterns can offer your toolkit

Book Description

Design patterns help speed up the development process by offering well tested and proven solutions to common problems. These patterns coupled with the Spring framework offer tremendous improvements in the development process.

The book begins with an overview of Spring Framework 5.0 and design patterns. You will understand the Dependency Injection pattern, which is the main principle behind the decoupling process that Spring performs, thus making it easier to manage your code. You will learn how GoF patterns can be used in Application Design. You will then learn to use Proxy patterns in Aspect Oriented Programming and remoting. Moving on, you will understand the JDBC template patterns and their use in abstracting database access. Then, you will be introduced to MVC patterns to build Reactive web applications. Finally, you will move on to more advanced topics such as Reactive streams and Concurrency.

At the end of this book, you will be well equipped to develop efficient enterprise applications using Spring 5 with common design patterns

What you will learn

  • Develop applications using dependency injection patterns
  • Learn best practices to design enterprise applications
  • Explore Aspect-Oriented Programming relating to transactions, security, and caching.
  • Build web applications using traditional Spring MVC patterns
  • Learn to configure Spring using XML, annotations, and Java.
  • Implement caching to improve application performance.
  • Understand concurrency and handle multiple connections inside a web server.
  • Utilizing Reactive Programming Pattern to build Reactive web applications.

About the Author

Dinesh Rajput is the chief editor of a website Dineshonjava, a technical blog dedicated to the Spring and Java technologies. It has a series of articles related to Java technologies. Dinesh has been a Spring enthusiast since 2008 and is a Pivotal Certified Spring Professional, an author, and a blogger. He has more than 10 years of experience with different aspects of Spring and Java design and development. His core expertise lies in the latest version of Spring Framework, Spring Boot, Spring Security, creating REST APIs, Microservice Architecture, Reactive Pattern, Spring AOP, Design Patterns, Struts, Hibernate, Web Services, Spring Batch, Cassandra, MongoDB, and Web Application Design and Architecture.

Table of Contents

  1. Overview of Spring Framework 5.0 and Used Design Patterns
  2. Best Practices with Consideration of Patterns for Spring Application
  3. Consideration of Structural and Behavioural Patterns into Spring
  4. Wiring beans using Dependency Injection Pattern
  5. Understanding Bean Life cycle and Used Patterns
  6. Spring Aspect Oriented Programming with Proxy Pattern
  7. Accessing Database with spring and JDBC template patterns
  8. Accessing Database with spring and ORM template patterns
  9. Improving performance of Application using Caching patterns
  10. Implementing MVC pattern in a Web Application with Spring
  11. Using Reactive Pattern in Programming
  12. Implementing Concurrency Patterns




Read more...

Wednesday, March 28, 2018

Pro Wicket (Expert's Voice in Java) review



The SourceForge open source lightweight Wicket project is a Java web application framework that takes simplicity, separation of concerns and ease of development to a new level. This book takes a no-nonsense approach, jumping directly to the practical aspects of Wicket. Chapters include Developing Wicket Forms; Validation with Wicket; Developing a Simple Application; Providing a Common Layout; Spring Integration; Wicket Localization; Wicket and Ajax; Custom Components and Wicket Extensions, and Unit Testing. Pro Wicket gets you quickly up and running with the framework and the attractively simple ‘wicket-way’ of addressing web development requirements.





Read more...

Tuesday, March 27, 2018

Modern Java Recipes: Simple Solutions to Difficult Problems in Java 8 and 9 review



The introduction of functional programming concepts in Java SE 8 was a drastic change for this venerable object-oriented language. Lambda expressions, method references, and streams fundamentally changed the idioms of the language, and many developers have been trying to catch up ever since. This cookbook will help. With more than 70 detailed recipes, author Ken Kousen shows you how to use the newest features of Java to solve a wide range of problems.

For developers comfortable with previous Java versions, this guide covers nearly all of Java SE 8, and includes a chapter focused on changes coming in Java 9. Need to understand how functional idioms will change the way you write code? This cookbook—chock full of use cases—is for you.

Recipes cover:

  • The basics of lambda expressions and method references
  • Interfaces in the java.util.function package
  • Stream operations for transforming and filtering data
  • Comparators and Collectors for sorting and converting streaming data
  • Combining lambdas, method references, and streams
  • Creating instances and extract values from Java’s Optional type
  • New I/O capabilities that support functional streams
  • The Date-Time API that replaces the legacy Date and Calendar classes
  • Mechanisms for experimenting with concurrency and parallelism




Read more...

Monday, March 26, 2018

Programación en Java. Uso de Spring Framework: 2ª Edición (Spanish Edition) review



Java es un lenguaje de programación orientado a objetos desarrollado en la década de 90 por un equipo de programadores capitaneado por James Gosling, en la empresa Sun Microsystems. A diferencia de los lenguajes convencionales, que son compilados a código nativo, el lenguaje Java se compila a un bytecode que es ejecutado por una máquina virtual. El lenguaje de programación Java es el lenguaje estándar de la Plataforma Java, pero no su único lenguaje.

La Plataforma Java es el nombre del entorno computacional, o plataforma, creada por la empresa estadounidense Sun Microsystems y vendida a la empresa Oracle hace algunos años. La plataforma permite desarrollar aplicaciones utilizando cualquiera de los lenguajes creados para la plataforma Java, siendo el lenguaje estándar el que lleva su propio nombre: el Lenguaje Java. Una gran ventaja de la plataforma es que no está sujeta a un único sistema oerativo o hardware, ya que sus programas se pueden ejecutar a través de una máquina virtual que puede ser emulada en cualquier sistema que soporte el programación lenguaje C++.

Desde su lanzamiento, en mayo de 1995, la plataforma Java fue adoptada más rápidamente que cualquier otro lenguaje de programación en la historia de la computación. En el año 2004 Java alcanzó la cifra de 3 millones de desarrolladores en todo el mundo. Java continuó creciendo y hoy en día es una referencia en el mercado de desarrollo de software. Java se hizo popular por su uso en internet y hoy en día tiene su entorno de ejecución presente en navegadores, mainframes, sistemas operativo, dispostivos móviles, tarjetas inteligentes etc.

Spring es un framework que da soporte al desarrollo de aplicaciones empresariales en Java, surgió como una alternativa ligera a la compleja plataforma J2EE, ganando muchísima popularidad entre los programadores.



Read more...

Sunday, March 25, 2018

Spring 5 Recipes: A Problem-Solution Approach review



Solve all your Spring 5 problems using complete and real-world code examples. When you start a new project, you’ll be able to copy the code and configuration files from this book, and then modify them for your needs. This can save you a great deal of work over creating a project from scratch.

The recipes in Spring 5 Recipes cover Spring fundamentals such as Spring IoC container, Spring AOP/ AspectJ, and more. Other recipes include Spring enterprise solutions for topics such as Spring Java EE integration, Spring Integration, Spring Batch, Spring Remoting, messaging, transactions, and working with big data and the cloud using Hadoop and MongoDB. Finally, Spring web recipes cover Spring MVC, other dynamic scripting, integration with the popular Grails Framework (and Groovy), REST/web services, and more.

You’ll also see recipes on new topics such as Spring Framework 5, reactive Spring, Spring 5 microservices, the functional web framework and much more.

This book

builds upon the best-selling success of the previous editions and focuses on the latest Spring Framework features for building enterprise Java applications. 

What You'll Learn

  • Get re-usable code recipes and snippets for core Spring, annotations and other development tools
  • Access Spring MVC for web development
  • Work with Spring REST and microservices for web services development and integration into your enterprise Java applications
  • Use Spring Batch, NoSQL and big data for building and integrating various cloud computing services and resources
  • Integrate Java Enterprise Edition and other Java APIs for use in Spring
  • Use Grails code and much more

Who This Book Is For

Experienced Java and Spring programmers.  






Read more...

Friday, March 23, 2018

Kotlin Programming Cookbook: Explore more than 100 recipes that show how to build robust mobile and web applications with Kotlin, Spring Boot, and Android review



Discover Android programming and web development by understanding the concepts of Kotlin Programming

Key Features

  • Practical solutions to your common programming problems with Kotlin 1.1
  • Leverage the functional power of Kotlin to ease your Android application development
  • Learn to use Java code in conjunction with Kotlin

Book Description

The Android team has announced first-class support for Kotlin 1.1. This acts as an added boost to the language and more and more developers are now looking at Kotlin for their application development. This recipe-based book will be your guide to learning the Kotlin programming language.

The recipes in this book build from simple language concepts to more complex applications of the language. After the fundamentals of the language, you will learn how to apply the object-oriented programming features of Kotlin 1.1. Programming with Lambdas will show you how to use the functional power of Kotlin.

This book has recipes that will get you started with Android programming with Kotlin 1.1, providing quick solutions to common problems encountered during Android app development. You will also be taken through recipes that will teach you microservice and concurrent programming with Kotlin. Going forward, you will learn to test and secure your applications with Kotlin. Finally, this book supplies recipes that will help you migrate your Java code to Kotlin and will help ensure that it's interoperable with Java.

What you will learn

  • Understand the basics and object-oriented concepts of Kotlin Programming
  • Explore the full potential of collection frameworks in Kotlin
  • Work with SQLite databases in Android, make network calls, and fetch data over a network
  • Use Kotlin's Anko library for efficient and quick Android development
  • Uncover some of the best features of Kotlin: Lambdas and Delegates
  • Set up web service development environments, write servlets, and build RESTful services with Kotlin
  • Learn how to write unit tests, integration tests, and instrumentation/acceptance tests.

Who This Book Is For

This book will appeal to Kotlin developers keen to find solutions for their common programming problems. Java programming knowledge would be an added advantage.

Table of Contents

  1. Installation and working with Environment
  2. Control flow
  3. Classes and Objects
  4. Functions
  5. Object oriented programming
  6. Collections Framework
  7. Handling File operations in Kotlin
  8. Anko Commons and Extension function
  9. Anko Layouts
  10. Databases and Dependency Injection
  11. Networking and Concurrency
  12. Lambdas and Delegates
  13. Testing
  14. Web services with Kotlin




Read more...

Learning Spring Boot 2.0 - Second Edition: Simplify the development of lightning fast applications based on microservices and reactive programming review



Key Features

  • Get up to date with the defining characteristics of Spring Boot 2.0 in Spring Framework 5
  • Learn to perform Reactive programming with SpringBoot
  • Learn about developer tools, AMQP messaging, WebSockets, security, MongoDB data access, REST, and more

Book Description

Spring Boot provides a variety of features that address today's business needs along with today's scalable requirements. In this book, you will learn how to leverage powerful databases and Spring Boot's state-of-the-art WebFlux framework. This practical guide will help you get up and running with all the latest features of Spring Boot, especially the new Reactor-based toolkit.

The book starts off by helping you build a simple app, then shows you how to bundle and deploy it to the cloud. From here, we take you through reactive programming, showing you how to interact with controllers and templates and handle data access. Once you're done, you can start writing unit tests, slice tests, embedded container tests, and even autoconfiguration tests.

We go into detail about developer tools, AMQP messaging, WebSockets, security, and deployment. You will learn how to secure your application using both routes and method-based rules. By the end of the book, you'll have built a social media platform from which to apply the lessons you have learned to any problem. If you want a good understanding of building scalable applications using the core functionality of Spring Boot, this is the book for you.

What you will learn

  • Create powerful, production-grade applications and services with minimal fuss
  • Support multiple environments with one artifact, and add production-grade support with features
  • Find out how to tweak your apps through different properties
  • Use custom metrics to track the number of messages published and consumed
  • Enhance the security model of your apps
  • Make use of reactive programming in Spring Boot
  • Build anything from lightweight unit tests to fully running embedded web container integration tests

About the Author

Greg L. Turnquist has been a software professional since 1997. In 2002, he joined the senior software team that worked on Harris' $3.5 billion FAA telco program, architecting mission-critical enterprise apps while managing a software team. He provided after-hours support to a nation-wide system and is no stranger to midnight failures and software triages. In 2010, he joined the SpringSource division of VMware, which was spun off into Pivotal in 2013.

As a test-bitten script junky, Java geek, and JavaScript Padawan, he is a member of the Spring Data team and the lead for Spring Session MongoDB. He has made key contributions to Spring Boot, Spring HATEOAS, and Spring Data REST while also serving as editor-at-large for Spring's Getting Started Guides.

Greg wrote technical best sellers Python Testing Cookbook and Learning Spring Boot, First Edition, for Packt. When he isn't slinging code, Greg enters the world of magic and cross swords, having written the speculative fiction action and adventure novel, Darklight.

He completed his master's degree in computer engineering at Auburn University and lives in the United States with his family.

Table of Contents

  1. Quick Start with Java
  2. Reactive Web with Spring Boot
  3. Reactive Data Access with Spring Boot
  4. Testing with Spring Boot
  5. Developer Tools for Spring Boot Apps
  6. AMQP Messaging with Spring Boot
  7. Microservices with Spring Boot
  8. WebSockets with Spring Boot
  9. Securing Your App with Spring Boot
  10. Taking your app to production with Spring Boot




Read more...

Thursday, March 22, 2018

Spring 5.0 By Example: Grasp the fundamentals of Spring 5.0 to build modern, robust, and scalable Java applications review



Discover the real power of Spring Framework 5.0 and learn to create powerful applications in its newest version

Key Features

  • Learn reactive programming by implementing a reactive application with Spring Webflux
  • Create a robust and scalable messaging application with Spring messaging support
  • Apply your knowledge to build three real-world projects in Spring

Book Description

With growing demands, organizations are looking for systems that are robust and scalable. Therefore, the Spring Framework has become the most popular framework for Java development. It not only simplifies software development but also improves developer productivity. This book covers effective ways to develop robust applications in Java using Spring.

The book has three parts, where each one covers the building of a comprehensive project in Java and Spring. In the first part, you will construct a CMS Portal using Spring's support for building REST APIs. You will also learn to integrate these APIs with AngularJS and later develop this application in a reactive fashion using Project Reactor, Spring WebFlux, and Spring Data. In the second part, you’ll understand how to build a messaging application, which will consume the Twitter API and perform filtering and transformations. Here, you will also learn about server-sent events and explore Spring’s support for Kotlin, which makes application development quick and efficient. In the last part, you will build a real microservice application using the most important techniques and patterns such as service discovery, circuit breakers, security, data streams, monitoring, and a lot more from this architectural style.

By the end of the book, you will be confident about using Spring to build your applications.

What you will learn

  • Implement REST APIs with Spring REST support
  • Introduce the Spring Boot and understand how it makes creating robust applications extremely simple
  • Understand how Spring Data helps us add persistence in MongoDB and SQL databases
  • Introduce Reactive Programming and use this with Spring Webflux
  • Implement a Reactive REST client and learn how it can create asynchronous applications
  • Create a robust, scalable, and fault tolerant application with Spring Messaging
  • Implement a websocket to add interactive behaviors in your applications
  • Introduce the Spring Cloud projects

Who this book is for

If you’re a developer starting out with Spring, then this book will help you learn about the new Spring 5.0 framework concepts followed by their implementation in Java and Kotlin. The book will also help experienced Spring developers gain insights into the new features added in Spring 5.0.

Table of Contents

  1. Journey to the Spring World
  2. Starting in the Spring World – the CMS
  3. Persistence with Spring Data and Reactive Fashion
  4. Kotlin Basics and Spring Data Redis
  5. Reactive Web Clients
  6. Playing with Server-Sent Events
  7. Airline Ticket System
  8. Circuit Breakers and Security
  9. Putting It All Together




Read more...

MySQL and JSON review



Practical instruction on using JavaScript Object Notation (JSON) with MySQL

This hands-on guide teaches, step by step, how to use JavaScript Object Notation (JSON) with MySQL. Written by a MySQL Community Manager for Oracle, MySQL and JSON: A Practical Programming Guide shows how to quickly get started using JSON with MySQL and clearly explains the latest tools and functions. All content is based on the author’s years of interaction with MySQL professionals. Throughout, real-world examples and sample code guide you through the syntax and application of each method. You will get in-depth coverage of programming with the MySQL Document Store.

•See how JavaScript Object Notation (JSON) works with MySQL
•Use JSON as string data and JSON as a data type
•Find the path, load data, and handle searches with REGEX
•Work with JSON and non-JSON output
•Build virtual generated columns and stored generated columns
•Generate complex geometries using GeoJSON
•Convert and manage data with JSON functions
•Access JSON data, collections, and tables through MySQL Document Store






Read more...

Java 9 for Programmers (4th Edition) (Deitel Developer Series) review



The professional programmer’s Deitel® guide to Java® 9 and the powerful Java platform

 

Written for programmers with a background in another high-level language, this book applies the Deitel signature live-code approach to teaching programming and explores the Java® 9 language and APIs in depth. The book presents concepts in fully tested programs, complete with code walkthroughs, syntax shading, code highlighting and program outputs. It features hundreds of complete Java 9 programs with thousands of lines of proven code, and hundreds of software-development tips that will help you build robust applications.

 

Start with an introduction to Java using an early classes and objects approach, then rapidly move on to more advanced topics, including JavaFX GUI, graphics, animation and video, exception handling, lambdas, streams, functional interfaces, object serialization, concurrency, generics, generic collections, database with JDBC™ and JPA, and compelling new Java 9 features, such as the Java Platform Module System, interactive Java with JShell (for discovery, experimentation and rapid prototyping) and more. You’ll enjoy the Deitels’ classic treatment of object-oriented programming and the object-oriented design ATM case study, including a complete Java implementation. When you’re finished, you’ll have everything you need to build industrial-strength, object-oriented Java 9 applications.

 

New Java® 9 Features
  • Java® 9’s Platform Module System
  • Interactive Java via JShell—Java 9’s REPL
  • Collection Factory Methods, Matcher Methods, Stream Methods, JavaFX Updates, Using Modules in JShell, Completable Future Updates, Security Enhancements, Private Interface Methods and many other language and API updates.

Core Java Features

  • Classes, Objects, Encapsulation, Inheritance, Polymorphism, Interfaces
  • Composition vs. Inheritance, “Programming to an Interface not an Implementation”
  • Lambdas, Sequential and Parallel Streams, Functional Interfaces with Default and Static Methods, Immutability
  • JavaFX GUI, 2D and 3D Graphics, Animation, Video, CSS, Scene Builder
  • Files, I/O Streams, XML Serialization
  • Concurrency for Optimal Multi-Core Performance, JavaFX Concurrency APIs
  • Generics and Generic Collections
  • Recursion, Database (JDBC™ and JPA)

Keep in Touch

  • Contact the authors at: deitel@deitel.com
  • Join the Deitel social media communities
    LinkedIn® at bit.ly/DeitelLinkedIn
    Facebook® at facebook.com/DeitelFan
    Twitter® at twitter.com/deitel
    YouTube™ at youtube.com/DeitelTV
  • Subscribe to the Deitel ® Buzz e-mail newsletter at http://ift.tt/SHE87G
  • For source code and updates, visit: http://ift.tt/2rjffH5


The professional programmer’s Deitel® guide to Java® 9 and the powerful Java platform

 

Written for programmers with a background in another high-level language, this book applies the Deitel signature live-code approach to teaching programming and explores the Java® 9 language and APIs in depth. The book presents concepts in fully tested programs, complete with code walkthroughs, syntax shading, code highlighting and program outputs. It features hundreds of complete Java 9 programs with thousands of lines of proven code, and hundreds of software-development tips that will help you build robust applications.

 

Start with an introduction to Java using an early classes and objects approach, then rapidly move on to more advanced topics, including JavaFX GUI, graphics, animation and video, exception handling, lambdas, streams, functional interfaces, object serialization, concurrency, generics, generic collections, database with JDBC™ and JPA, and compelling new Java 9 features, such as the Java Platform Module System, interactive Java with JShell (for discovery, experimentation and rapid prototyping) and more. You’ll enjoy the Deitels’ classic treatment of object-oriented programming and the object-oriented design ATM case study, including a complete Java implementation. When you’re finished, you’ll have everything you need to build industrial-strength, object-oriented Java 9 applications.

 

New Java® 9 Features
  • Java® 9’s Platform Module System
  • Interactive Java via JShell—Java 9’s REPL
  • Collection Factory Methods, Matcher Methods, Stream Methods, JavaFX Updates, Using Modules in JShell, Completable Future Updates, Security Enhancements, Private Interface Methods and many other language and API updates.

Core Java Features

  • Classes, Objects, Encapsulation, Inheritance, Polymorphism, Interfaces
  • Composition vs. Inheritance, “Programming to an Interface not an Implementation”
  • Lambdas, Sequential and Parallel Streams, Functional Interfaces with Default and Static Methods, Immutability
  • JavaFX GUI, 2D and 3D Graphics, Animation, Video, CSS, Scene Builder
  • Files, I/O Streams, XML Serialization
  • Concurrency for Optimal Multi-Core Performance, JavaFX Concurrency APIs
  • Generics and Generic Collections
  • Recursion, Database (JDBC™ and JPA)

Keep in Touch

  • Contact the authors at: deitel@deitel.com
  • Join the Deitel social media communities
    LinkedIn® at bit.ly/DeitelLinkedIn
    Facebook® at facebook.com/DeitelFan
    Twitter® at twitter.com/deitel
    YouTube™ at youtube.com/DeitelTV
  • Subscribe to the Deitel ® Buzz e-mail newsletter at http://ift.tt/SHE87G
  • For source code and updates, visit: http://ift.tt/2rjffH5


Read more...

Wednesday, March 21, 2018

Java: Programming Basics for Absolute Beginners (Step-By-Step Java) (Volume 1) review



Java Made Easy – a Step-by-Step Guide for Beginners

Get the Kindle version FREE when purchasing the Paperback!

Learning a programming language can seem like a daunting task. You may have looked at coding in the past, and felt it was too complicated and confusing. This comprehensive beginner’s guide will take you step by step through learning one of the best programming languages out there. In a matter of no time, you will be writing code like a professional.

Java is one of the most popular and widely used programming languages available. Most of the modern applications built around the world, including server side and business logic components, are made from the Java programming language. Its portability and ease of use has ensured that it is a favourite among novices and seasoned developers alike.

What This Book Offers

Made for Beginners
This guide is written specifically for beginners. We take you step-by-step through writing your very first program, explaining each portion of code as we go along. We guide you through the workings of the Java Development Kit and Java Runtime Environment, as well as choosing an IDE.

57 Practical Examples
With each concept, we provide one or more example to illustrate the topic in a way that makes it easy to understand. We break examples down into their basic workings, and provide the output for you to compare to your own results.

Introduction to Java
For newcomers to Java we look at what the language has to offer, its origin and design goals, features and capabilities, as well as the various Java editions, before stepping into more in-depth topics.

Key Topics

  • Basics of Java
  • Writing Your First Program, Step-By-Step
  • Basic Program Structure
  • Which IDE to Choose
  • How to Use the Java Development Kit
  • Understanding the Java Runtime Environment
  • Features and Uses of Java
  • Sample Applications
  • Data Types
  • Variables
  • Constants
  • Operators
  • Type Conversion
  • Loops
  • Decision Making

Get Your Copy Today!





Read more...

learn spring framework from scratch: Spring tutorial in Java: Spring tutorial for beginners with examples review



Spring framework is an open source Java platform that provides comprehensive infrastructure support for developing robust Java applications very easily and very rapidly. Spring framework was initially written by Rod Johnson and was first released under the Apache 2.0 license in June 2003. This tutorial has been written based on Spring Framework version 4.1.6 released in Mar 2015.
Audience

This tutorial is designed for Java programmers with a need to understand the Spring framework in detail along with its architecture and actual usage. This tutorial will bring you at an intermediate level of expertise, from where you can take yourself to higher levels of expertise.
Prerequisites

Before proceeding with this tutorial, you should have a good understanding of Java programming language. A basic understanding of Eclipse IDE is also required because all the examples have been compiled using Eclipse IDE.



Read more...

Spock: Up and Running: Writing Expressive Tests in Java and Groovy review



Most developers would agree that writing automated tests is a good idea, but writing good, well-structured tests is still an elusive skill for many. For Java and Groovy developers, however, there’s good news. This practical guide shows you how to write concise and highly readable tests with Spock, the most innovative testing and specification framework for the JVM since JUnit.

Author Rob Fletcher takes you from Spock basics to advanced topics, using fully worked integration examples. Through the course of this book, you’ll build a simple web application—Squawker—that allows users to post short messages. You’ll discover how much easier it is to write automated tests with Spock’s straightforward and expressive language.

  • Start by learning how to write simple unit tests
  • Understand the lifecycle of Spock specifications and feature methods
  • Dive into interaction testing, using Spock’s intuitive syntax for dealing with mocks and stubs
  • Learn about parameterized tests—writing feature methods that run for multiple sets of data
  • Move into advanced topics, such as writing idiomatic Spock code and driving parameterized tests with file or database input
  • Learn how everything works together in a standalone, fully-worked, test-driven development example


Most developers would agree that writing automated tests is a good idea, but writing good, well-structured tests is still an elusive skill for many. For Java and Groovy developers, however, there’s good news. This practical guide shows you how to write concise and highly readable tests with Spock, the most innovative testing and specification framework for the JVM since JUnit.

Author Rob Fletcher takes you from Spock basics to advanced topics, using fully worked integration examples. Through the course of this book, you’ll build a simple web application—Squawker—that allows users to post short messages. You’ll discover how much easier it is to write automated tests with Spock’s straightforward and expressive language.

  • Start by learning how to write simple unit tests
  • Understand the lifecycle of Spock specifications and feature methods
  • Dive into interaction testing, using Spock’s intuitive syntax for dealing with mocks and stubs
  • Learn about parameterized tests—writing feature methods that run for multiple sets of data
  • Move into advanced topics, such as writing idiomatic Spock code and driving parameterized tests with file or database input
  • Learn how everything works together in a standalone, fully-worked, test-driven development example


Read more...

Tuesday, March 20, 2018

OCA Java SE 8 Programmer I Exam Guide (Exams 1Z0-808) review



Up-to-date coverage of every topic on the Java 8 SE Programmer I exam

Prepare for the OCA Java SE 8 Programmer I exam using this effective self-study system from Oracle Press. Written by developers of the original Sun Certified Java Programmer exam, OCA Java SE 8 Programmer I Exam Guide (Exam 1Z0-808) includes two complete, accurate practice exams. In all, you will get more than 200 practice questions that mirror those on the actual test in content, tone, and format. Beyond fully preparing you for the challenging exam, the book also serves as an ideal on-the-job reference.

Clearly explains every topic on Exam IZ0-808, including:
• Declarations
• Access control
• Object orientation
• Assignments
• Operators
• Flow control
• Exceptions
• Strings
• Arrays
• ArrayLists
 
Electronic content includes:
• 200+ practice exam questions
• Fully customizable test engine
• Secured book PDF



Up-to-date coverage of every topic on the Java 8 SE Programmer I exam

Prepare for the OCA Java SE 8 Programmer I exam using this effective self-study system from Oracle Press. Written by developers of the original Sun Certified Java Programmer exam, OCA Java SE 8 Programmer I Exam Guide (Exam 1Z0-808) includes two complete, accurate practice exams. In all, you will get more than 200 practice questions that mirror those on the actual test in content, tone, and format. Beyond fully preparing you for the challenging exam, the book also serves as an ideal on-the-job reference.

Clearly explains every topic on Exam IZ0-808, including:
• Declarations
• Access control
• Object orientation
• Assignments
• Operators
• Flow control
• Exceptions
• Strings
• Arrays
• ArrayLists
 
Electronic content includes:
• 200+ practice exam questions
• Fully customizable test engine
• Secured book PDF



Read more...

Java in 24 Hours, Sams Teach Yourself (Covering Java 9) (8th Edition) review



Computer programming with Java is easier than it looks. In just 24 lessons of one hour or less, you can learn to write computer programs in Java.

 

Using a straightforward, step-by-step approach, popular author Rogers Cadenhead helps you master the skills and technology you need to create desktop and web programs, web services, an Android app, and even Minecraft mods in Java.

 

Each lesson builds on what you’ve already learned, giving you a rock-solid foundation for real-world success.

 

Full-color figures and clear step-by-step instructions visually show you how to program with Java.

 

Quizzes and Exercises at the end of each chapter help you test your knowledge.

 

Notes, Tips, and Cautions provide related information, advice, and warnings.

 

Learn how to…

• Set up your Java programming environment

• Write your first working program in just minutes

• Control program decisions and behavior

• Store and work with information

• Build straightforward user interfaces

• Create interactive web programs

• Use threading to build more responsive programs

• Read and write files and XML data

• Master best practices for object-oriented programming

• Use Java 9’s new HTTP client

• Use Java to create an Android app

• Expand your skills with closures

• Create Minecraft mods with Java

 

Contents at a Glance

 

Part I Getting Started

1 Becoming a Programmer

2 Writing Your First Program

3 Vacationing in Java

4 Understanding How Java Programs Work

 

Part II Learning the Basics of Programming

5 Storing and Changing Information in a Program

6 Using Strings to Communicate

7 Using Conditional Tests to Make Decisions

8 Repeating an Action with Loops

 

Part III Working with Information in New Ways

9 Storing Information with Arrays

10 Creating Your First Object

11 Describing What Your Object is Like

12 Making the Most of Existing Objects

 

Part IV Moving into Advanced Topics

13 Storing Objects in Data Structures

14 Handling Errors in a Program

15 Creating a Threaded Program

16 Using Inner Classes and Closures

 

Part V Programming a Graphical User Interface

17 Building a Simple User Interface in Swing

18 Laying Out a User Interface

19 Responding to User Input

 

Part VI Writing Internet Applications

20 Reading and Writing Files

21 Using Java 9's New HTTP Client

22 Creating Java2D Graphics

23 Creating Minecraft Mods with Java

24 Writing Android Apps

 

Appendixes

A Using the NetBeans Integrated Development Environment

B Where to Go from Here Java Resources

C This Book's Web Site

D Fixing a Problem with the Android Studio Emulator



Computer programming with Java is easier than it looks. In just 24 lessons of one hour or less, you can learn to write computer programs in Java.

 

Using a straightforward, step-by-step approach, popular author Rogers Cadenhead helps you master the skills and technology you need to create desktop and web programs, web services, an Android app, and even Minecraft mods in Java.

 

Each lesson builds on what you’ve already learned, giving you a rock-solid foundation for real-world success.

 

Full-color figures and clear step-by-step instructions visually show you how to program with Java.

 

Quizzes and Exercises at the end of each chapter help you test your knowledge.

 

Notes, Tips, and Cautions provide related information, advice, and warnings.

 

Learn how to…

• Set up your Java programming environment

• Write your first working program in just minutes

• Control program decisions and behavior

• Store and work with information

• Build straightforward user interfaces

• Create interactive web programs

• Use threading to build more responsive programs

• Read and write files and XML data

• Master best practices for object-oriented programming

• Use Java 9’s new HTTP client

• Use Java to create an Android app

• Expand your skills with closures

• Create Minecraft mods with Java

 

Contents at a Glance

 

Part I Getting Started

1 Becoming a Programmer

2 Writing Your First Program

3 Vacationing in Java

4 Understanding How Java Programs Work

 

Part II Learning the Basics of Programming

5 Storing and Changing Information in a Program

6 Using Strings to Communicate

7 Using Conditional Tests to Make Decisions

8 Repeating an Action with Loops

 

Part III Working with Information in New Ways

9 Storing Information with Arrays

10 Creating Your First Object

11 Describing What Your Object is Like

12 Making the Most of Existing Objects

 

Part IV Moving into Advanced Topics

13 Storing Objects in Data Structures

14 Handling Errors in a Program

15 Creating a Threaded Program

16 Using Inner Classes and Closures

 

Part V Programming a Graphical User Interface

17 Building a Simple User Interface in Swing

18 Laying Out a User Interface

19 Responding to User Input

 

Part VI Writing Internet Applications

20 Reading and Writing Files

21 Using Java 9's New HTTP Client

22 Creating Java2D Graphics

23 Creating Minecraft Mods with Java

24 Writing Android Apps

 

Appendixes

A Using the NetBeans Integrated Development Environment

B Where to Go from Here Java Resources

C This Book's Web Site

D Fixing a Problem with the Android Studio Emulator



Read more...

Building RESTful Web Services with Spring 5: Leverage the power of Spring 5.0, Java SE 9, and Spring Boot 2.0 review



Find out how to implement the REST architecture to build resilient software in Java with the help of the Spring 5.0 framework.

Key Features

  • ~Follow best practices and explore techniques such as clustering and caching to achieve a reactive, scalable web service,~Leverage the Spring Framework to quickly implement RESTful endpoints,~Learn to implement a client library for a RESTful web service using the Spring Framework along with the new front end framework.

Book Description

REST is an architectural style that tackles the challenges of building scalable web services. In today's connected world, APIs have taken a central role on the web. APIs provide the fabric through which systems interact, and REST has become synonymous with APIs.The depth, breadth, and ease of use of Spring makes it one of the most attractive frameworks in the Java ecosystem. Marrying the two technologies is therefore a very natural choice.This book takes you through the design of RESTful web services and leverages the Spring Framework to implement these services. Starting from the basics of the philosophy behind REST, you'll go through the steps of designing and implementing an enterprise-grade RESTful web service. Taking a practical approach, each chapter provides code samples that you can apply to your own circumstances.This second edition brings forth the power of the latest Spring 5.0 release, working with MVC built-in as well as the front end framework. It then goes beyond the use of Spring to explores approaches to tackle resilience, security, and scalability concerns. Improve performance of your applications with the new HTTP 2.0 standards. You'll learn techniques to deal with security in Spring and discover how to implement unit and integration test strategies.Finally, the book ends by walking you through building a Java client for your RESTful web service, along with some scaling techniques using the new Spring Reactive libraries.

What you will learn

  • Deep dive into the principles behind REST
  • Expose CRUD operations through RESTful endpoints with the Spring Framework
  • Devise response formats and error handling strategies, offering a consistent and flexible structure to simplify integration for service consumers
  • Follow the best approaches for dealing with a service's evolution while maintaining backward compatibility
  • Understand techniques to secure web services
  • Comply with the best ways to test RESTful web services, including tips for load testing
  • Optimise and scale web services using techniques such as caching and clustering

Who this book is for

This book is intended for those who want to learn to build RESTful web services with the latest Spring 5.0 Framework. To make best use of the code samples included in the book, you should have a basic knowledge of the Java language. Previous experience with the Spring Framework would also help you get up and running quickly.





Read more...

Getting started with Spring Framework: covers Spring 5 review



Chapter 1 of this book is now available onlinebit.ly/2z8ErGg

4th Edition reflects changes to Spring 5, and includes new chapters on Functional and Reactive application development. Reactive application development chapters cover Reactive Streams specification, RxJava 2, Reactor, Spring WebFlux, and reactive support in Spring Data and Spring Security

The examples (consisting of 88 sample projects) that accompany this book are based on Spring 5.0.1 and Java 9. You can download the examples described in this book from the following GitHub project: github.com/getting-started-with-spring/4thEdition 

This book covers: 
- Spring Framework basics 
- Aspect-oriented programming 
- Database interaction using Spring and Hibernate/JPA 
- Spring Data JPA 
- Spring Data MongoDB 
- Messaging, emailing and caching support 
- Spring Web MVC 
- Developing RESTful web services using Spring Web MVC 
- Functional programming using lambdas and method references 
- Stream API 
- Reactive programming using RxJava 2 and Reactor 
- Spring WebFlux 
- Reactive support in Spring Data MongoDB and Spring Security 
- Developing reactive RESTful web services using Spring WebFlux, Spring Security and Spring Data MongoDB




Read more...