Blog Archives

Convert Maven Project to Gradle Project

Install Gradle into your machine, here are the Gradle installation steps: After successful installation of Gradle, below command should work in your command prompt/terminal window. > gradle -v ———————————————————— Gradle <<gradle version>> ———————————————————— Now navigate to the maven root

Tagged with: , , , ,
Posted in Build Tools, Others

Gradle Vs Maven

Started my software developement career in Java with Ant build tool. By the time I want to learn about Ant, my team has migrated to Maven in early 2011. Since then, Maven is only the build tool that have been

Tagged with: , , , ,
Posted in Build Tools, Others

String.join() Example – Java 8

Java 8 has String.join() method where first parameter is separator and then you can pass either multiple strings or some instance of Iterable having instances of strings as second parameter. Here is the sample program:

Tagged with: , , , ,
Posted in JAVA, JAVA8, Others

Node JS experienced interview questions

Is Node.js Single-threaded? Why it is required? Yes, Node Js is single threaded to perform asynchronous processing. All Node JS applications uses “Single Threaded Event Loop Model” architecture to handle multiple concurrent clients. Doing async processing on a single thread

Posted in Nodejs, Others

How to convert a JKS Keystore to a PKCS12 (.p12) format

To convert a JKS (.jks) keystore to a PKCS12 (.p12) keystore, run the following command: Note: This command is supported on JDK / JRE keytool versions 1.6 and greater. keytool -importkeystore -srckeystore <jks_file_name.jks> -destkeystore <pk12_file_name.p12> -srcstoretype JKS -deststoretype PKCS12 -deststorepass

Tagged with: ,
Posted in JAVA

What is a WeakMap in ES6?

A WeakMap is just like a normal Map with a few key differences: a WeakMap can only contain objects as keys, a WeakMap is not iterable which means it can’t be looped and a WeakMap does not have a .clear()

Tagged with: , , , , , ,
Posted in ES6, JavaScript

ES6 Default Function Parameters

Unlike the defining the default values in JavaScript, ES6 has provided a flexibility to define the default values during the function definition time.  In regular Javascript, we define a variable with one value, override that value with in the function

Tagged with: , , , , , ,
Posted in ES6, JavaScript, Struts

Arrow Functions in ES6

ES6 introduces a new kind of function called arrow function. Arrow functions are very similar to regular functions in behavior, but are quite different syntactically. They will save developers time and simplify function scope. The following code takes a list

Tagged with: , , , , , , , , ,
Posted in ES6, JavaScript

ES6 variable declaration – let and const

In standard Javascript, the only way to declare a variable in JavaScript was to use the keyword var. But, in ES6 there are now two new ways to declare variables in JavaScript: let and const. let and const have some other interesting properties. Variables

Tagged with: , , , , ,
Posted in ES6, JavaScript

Example Program to combine arrays in ES6

Here is one example of when the spread operator can be useful is when combining arrays. If you’ve ever needed to combine multiple arrays, prior to the spread operator, you were forced to use the Array’s concat() method. const fruits = [“apples”,

Tagged with: , , , , ,
Posted in ES6, JavaScript

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 683 other followers

May 2020
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 331,754 hits