Home » JVM Languages

JVM Languages

Scala forall() Example

1. Introduction In this lesson, we will look at some excellent examples of Scala’s forall() function and how it can be used various scenarios to apply predicate logic over a collection of elements. It is one of the simplest functions to use in Scala and apply a simple logic in terms of functional programming as it allows us to define an ...

Read More »

Scala Tutorial for Java Developers

1. Introduction In this lesson, we will look at some excellent examples with which Java programmers can get started with Scala very fast and learn some important concepts that will help them call themselves as Scala professionals in a very short time. Well, the biggest challenge for any programmer, may he be comfortable with Java, Kotlin, Python or any other ...

Read More »

Groovy Collections Example

1. Introduction Apache Groovy (Groovy) is an object-oriented dynamic programming language for the Java platform. It is dynamically compiled to the Java Virtual Machine (JVM) bytecode, and inter-operates with other Java source codes and libraries. Groovy is written in Java and was first released in 2007. Groovy provides native support for various collection types, including lists, sets, maps, and ranges. Most of these are based on ...

Read More »

Groovy Each Example

1. Introduction Apache Groovy (Groovy) is an object-oriented dynamic programming language for the Java platform. It is dynamically compiled to the Java Virtual Machine (JVM) bytecode, and inter-operates with other Java source codes and libraries. Groovy is written in Java and was first released in 2007. Groovy each and eachWithIndex methods are defined in Groovy Object, so we can use them for any object. ...

Read More »

Groovy SQL Example

1. Introduction Apache Groovy (Groovy) is an object-oriented dynamic programming language for the Java platform. It is dynamically compiled to the Java Virtual Machine (JVM) bytecode, and inter-operates with other Java source codes and libraries. Groovy is written in Java and was first released in 2007. Groovy SQL module provides a higher-level abstraction on JDBC technology. The Groovy SQL API supports a wide ...

Read More »

Grails Hello World Example

1. Introduction This example is about creating the first application in grails and we basically start application or any introduction with a Hello example. So this Hello World program in Grails will be the introduction for starting Grails application. Let’s start with Grails at first. Grails is a web application framework for JAVA platform. Also Grails is highly productive framework ...

Read More »

Grails REST Example

In this example we shall show you how to create RESTful APIs using Grails. Exposing your application functionality to other applications is always achieved using web services. Grails provides several features that make implementing a RESTful web service in Grails easy using a RESTful resource. Originally, web services grew in popularity as a means for system integration. But with the recent popularity ...

Read More »

Scala HTTP Example

In this Example series, we will see how to work with HTTP (Hyper Text Transfer Protocol) through a Web Application in Scala using Scalatra and Scalate. The following table shows an overview of the entire article. Table of Contents 1. Pre-Requisites 2. Environment 3. HTTP 3.1 What is HTTP 3.2 HTTP Request 3.3. HTTP Response 4. Scalatra, a Web Framework ...

Read More »

Scala REST Example

In this Example series, we will see how to have a REST (Web) Application in Scala. The following table shows an overview of the entire article: Table of Contents 1. Pre-Requisites 2. Environment 3. REST 3.1 What is REST 3.2 REST Client 3.3. Common Use Cases 4. Scalatra 4.1 Installing Scalatra 4.2 Pre-requisites – Installing Conscript and Giter8 4.3 SBT ...

Read More »

Functional Programming in Scala

In this Tutorial article, we will see how to work with Functional Programming in Scala Programming Language. According to Wikipedia, the definition of Functional Programming is as follows. In computer science, functional programming is a programming paradigm – a style of building the structure and elements of computer programs—that treats computation as the evaluation of mathematical functions and avoids changing-state ...

Read More »