Book description
Explore the Java Virtual Machine with modern programming languages
About This Book
This guide provides in-depth coverage of the Java Virtual Machine and its features
Filled with practical examples, this book will help you understand the core concepts of Java, Scala, Clojure, Kotlin, and Groovy
Work with various programming paradigms and gain knowledge about imperative, object-oriented and functional programming
Who This Book Is For
This book is meant for programmers who are interested in the Java Virtual Machine (JVM) and want to learn more about the most popular programming languages that can be used for JVM development. Basic practical knowledge of a modern programming language that supports object-oriented programming (JavaScript, Python, C#, VB.NET, and C++) is assumed.
What You Will Learn
Gain practical information about the Java Virtual Machine
Understand the popular JVM languages and the Java Class Library
Get to know about various programming paradigms such as imperative, object-oriented, and functional
Work with common JVM tools such as Eclipse IDE, Gradle, and Maven
Explore frameworks such as SparkJava, Vert.x, Akka and JavaFX
Boost your knowledge about dialects of other well-known programming languages that run on the JVM, including JavaScript, Python, and Ruby
In Detail
Anyone who knows software development knows about the Java Virtual Machine. The Java Virtual Machine is responsible for interpreting Java byte code and translating it into actions. In the beginning, Java was the only programming language used for the JVM. But increasing complexity of the language and the remarkable performance of the JVM created an opening for a new generation of programming languages. If you want to build a strong foundation with the Java Virtual Machine and get started with popular modern programming languages, then this book is for you.
The book will begin with a general introduction of the JVM and its features, which are common to the JVM languages, helping you get abreast with its concepts. It will then dive into explaining languages such as Java, Scala, Clojure, Kotlin, and Groovy and will show how to work with each language, their features, use cases, and pros and cons. By writing example projects in those languages and focusing on each language’s strong points, it will help you find the programming language that is most appropriate for your particular needs.
By the end of the book, you will have written multiple programs that run on the Java Virtual Machine and know about the differences between the various languages.
Style and approach
This practical, example-filled guide will help you get started with the JVM and some of its most popular languages.
Table of contents
- Preface
- Java Virtual Machine
-
Developing on the Java Virtual Machine
- JDK
- Class organization with packages
- Java Class Library
- Running JVM applications on the command line
- Eclipse IDE
- Summary
- Java
-
Java Programming
- Configuring Eclipse IDE
-
Creating a web service in Java
- Creating a new Gradle project in Eclipse IDE
- Modifying the Gradle build file
- Building the project
-
Coding the backend class
- Backend class business rules
- Creating a dummy implementation of the method
- Creating the test case class and writing its first unit test
- Implementing an input validation check
- Writing the second unit test
- Implementing the business logic
- Creating an executable application task
- Creating a web service
- Running the web service
- Creating Javadoc documentation
- Summary
-
Scala
- Installing Scala
- Scala's Read-Eval-Print-Loop shell
- Functional versus imperative programming
- Scala language syntax and rules
- OOP in Scala
- Scala's standard library
- Functional programming in Scala
- Quiz
- Summary
-
Scala Programming
- Scala IDE for the Eclipse plugin
- SBT
- Creating an Akka project
- Summary
- Clojure
- Clojure Programming
- Kotlin
- Kotlin Programming
- Groovy
- Groovy Programming
- Other JVM languages
- Quiz Answers
Product information
- Title: Introduction to JVM Languages
- Author(s):
- Release date: June 2017
- Publisher(s): Packt Publishing
- ISBN: 9781787127944
You might also like
book
Introduction to Compiler Construction in a Java World
Immersing students in Java and the Java Virtual Machine (JVM), Introduction to Compiler Construction in a …
book
Spring: Developing Java Applications for the Enterprise
Leverage the power of Spring MVC, Spring Boot, Spring Cloud, and additional popular web frameworks. About …
book
Agile Java Development with Spring, Hibernate and Eclipse
is a book about robust technologies and effective methods which help bring simplicity back into the …
book
Programming for the Java™ Virtual Machine
The core of Java technology, the Java virtual machine is an abstract computing machine that enables …