Welcome to my blog !


Typescript Difference between interface and Types

August 1, 2021 ·  3 min read

This is an short tutorials about Interfaces and types uses and difference between them. Types and [interfaces] (/2018/08/understanding-typescript-interfaces.html) are used to describe the design of an custom type but there are some differences. What is interface in typescript? Interfaces in typescript provides contract and rules for classes to implement it. It is used to group the properties to create a custom class types. Let’s create an interface class shape{ length:number; width:number } Interfaces in typescript helps...

Frequently used Gradle commands list | gradle cheat sheet

July 31, 2021 ·  3 min read

Gradle is a build automation tool for java and android projects. Developer working on java projects know about gradle command use. This tutorial covers list of commands used by developer for daily usage in projects Please have a look of my previous article maven installation. For the maven installation, the JDK is required. You can use either gradle wrapper command gradlew or [installs gradle] (/gradle-installation> locally for gradle command execution...

Different ways to configure java version in Gradle project

July 31, 2021 ·  3 min read

This tutorials talks about different ways of configuring java version in gradle projects. In java projects, Source projects are compiled and generates class files. In Gradle, For java plugin, We need provide java version in build gradle for compile and generate class files. Java installation is required for building gradle project and running gradle build. How to configure source and target jdk version in gradle build to compile files in java, we use javac command and it has source and target arguments for javac command...

Best used forEach Examples in java8 with explanation

July 31, 2021 ·  3 min read

java8 forEach tutorials Java8 introduced forEach for iteration of elements - collections, Arrays, and Map. It allows the developer to iterate collections using an internal iterator. This can be used with Lambda Expressions and Method reference. Java 7 for each loop example  To iterate the list of strings, We have used for each enhanced iteration. List<String> list = new ArrayList<String>(); list.add("one"); list.add("two"); list.add("three"); list.add("four"); for (String str : list) { System....

How to run only single test cases with gradle build

July 30, 2021 ·  2 min read

This is an short tutorial on how to run single test case execution in gradle build Single module project Multi modular project some times, to debug testcase execution, We need to run single test cases for multiple times, thus helps developers to debug and run multiple times without wasting time. Test cases can be unit or integration or functional tests. How to run single test cases in gradle project?...

Subscribe
You'll get a notification every time a post gets published here.