spark – other concepts

database password encryption in spring boot

spring-boot-security using http basic authentication

In this post, we will learn about spring-boot-security using http basic authentication In this tutorial we will use spring security ...
while loop in java

automatic mouse mover in java

In this post, we will do automatic mouse mover in java We can move the cursor with random directions using ...
database password encryption in spring boot

enable cors in spring boot rest API

In this post we will learn to enable cors in spring boot rest API For security reasons, browsers prohibit AJAX ...
while loop in java

change timezone of date in java

In this post, we will learn to change timezone of date in java In java by default new Date() will ...
while loop in java

join two arraylist in java with example

In this post, we will learn to join two arraylist in java with example ArrayList is a dynamic array concept ...
while loop in java

singleton in java with example

In this post, we will learn singleton in java with example Singleton is one of the famous design pattern in ...
while loop in java

convert java object to JSON string

In this post, we will learn to convert java object to JSON string using GSON library We can convert Java ...
while loop in java

convert JSON string to java object

In this post, we will learn to convert JSON string to java object using GSON We can convert json string ...
database password encryption in spring boot

read value from application.properties spring boot

In this post, we will learn to read value from application.properties spring boot In spring boot application we can easily ...
database password encryption in spring boot

unable to determine jdbc url from datasource spring boot

In this post, we will discover about unable to determine jdbc url from datasource spring boot error Cause of problem ...
database password encryption in spring boot

no main manifest attribute, in – spring boot

In this post, we will learn to resolve no main manifest attribute, in - spring boot application Once your jar ...
database password encryption in spring boot

configure datasource programmatically in spring boot

In this post, we will learn about configure datasource programmatically in spring boot In below example we are using mysql ...
while loop in java

com.sun.net.httpserver.httpexchange not found in eclipse

In this post we will learn about com.sun.net.httpserver.httpexchange not found in eclipse While I am trying to add Http Server ...
while loop in java

add rest service in core java application

In this post, we will learn about add rest service in core java application We are in spring boot world, ...
while loop in java

convert iterator to list in java

In this tutorial, we will learn convert iterator to list in java Here we are giving two approach to convert ...
add swagger in spring boot application

add swagger in spring boot application

In this tutorial, we will learn to add swagger in spring boot application What is Swagger ? Swagger is an ...
database password encryption in spring boot

Field ‘id’ doesn’t have a default value

Field ‘id’ doesn’t have a default value: You will face this exception when you not properly configured your model class ...
database password encryption in spring boot

crud operations in spring boot with Mysql

In this tutorial, we will learn crud operations in spring boot with Mysql If you want to learn more about ...
database password encryption in spring boot

connect MySQL database from spring boot

In this tutorial, we will learn to connect MySQL database from spring boot with Spring Data What is Spring Data ...
database password encryption in spring boot

how to create rest service using spring boot

In this post, we will learn how to create rest service using spring boot What is Rest Service REST is ...
database password encryption in spring boot

how to create spring boot application

In this tutorial, we will learn how to create spring boot application What is Spring boot Spring Boot makes it ...
register spring boot micro-services to eureka discovery server

register spring boot micro-services to eureka discovery

This tutorial is a continuation of our previous tutorial, Here we will learn about register spring boot micro-services to eureka ...
register spring boot micro-services to eureka discovery server

create netflix eureka discovery server using spring boot

Here we are going to create netflix eureka discovery server using spring boot What is Discovery Server Discovery server is ...
get the last modified date of a file in Java

get the last modified date of a file in Java

In this post, we will learn about get the last modified date of a file in Java It returns the ...
while loop in java

count number of words in string using java

In this post, we will learn about count number of words in string using java In below example we using ...
find the first occurrence of a character in string using java

find the first occurrence of a character in string using java

In this post, we will learn to find the first occurrence of a character in string using java As like ...
find the first occurrence of a character in string using java

find the last index of a character in string using java

In this post, we will learn to find the last index of a character in string using java As like ...
how to write properties file in java

how to write properties file in java

In this tutorial, we will learn how to write properties file in java we are going to use FileOutputStream to ...
get the last modified date of a file in Java

java.sql.SQLTimeoutException Query Timeout

In this tutorial, we will learn about java.sql.SQLTimeoutException Query Timeout It is always good to do proactive coding. As part ...
how to write properties file in java

how to load property file in java

In this post, we will learn how to load property file in java. Properties file is used to store and ...
get the last modified date of a file in Java

how to get the hostname in java code

In this post, we will learn how to get the hostname in java code In this example we are using ...
multiply two matrix using java with example

multiply two matrix using java with example

In this post, we will learn about multiply two matrix in java with example We are declaring two matrix named ...
subtracting two matrix in java with example

subtracting two matrix in java with example

In this post, we will learn about subtracting two matrix in java with example We are declaring two matrix named ...
adding two matrix in java with example

adding two matrix in java with example

In this post, we will learn about adding two matrix in java with example In below example,We are using two ...
create 2x2 matrix using java

create 2×2 matrix using java

In this post, we will learn to create 2x2 matrix using java We all know that In mathematics Matrix is ...
while loop in java

delete a file from java code

In this post, we will learn to delete a file from java code. When you are delete a file from ...
get the last modified date of a file in Java

ssh to linux box using Kerberos from Java

In this post, we will learn about ssh to linux box using Kerberos from Java If you want to login ...
get the last modified date of a file in Java

Base64 Encoding using Java

In Below example we will learn how to use Base64 Encoding using Java Finally Java8 incorporated Base64 Encoding. Base64 is ...
while loop in java

how to list all files inside a folder using java

In this post, we will how to list all files inside a folder using java. Here we will use File.java ...
while loop in java

how to read a file from java with example

In this post, we will learn about how to read a file from java with example This will called as ...
while loop in java

create text file from java with example

In this post, we are going to learn create text file from java with example In this example, we are ...
while loop in java

calculate number days between two dates using java

In this tutorial, we will learn about calculate number days between two dates using java There are lot of ways ...
while loop in java

How to compare two strings in java

In this post, We will learn How to compare two strings in java It might sounds easy. But we need ...
while loop in java

get key and value from hashmap in java

In this tutorial, we will learn about get key and value from hashmap in java Example Using Java 8 import ...
filter operations in streams on java 

iterate stream with index in Java8

In this post, we will learn to iterate stream with index in Java8 We will come across multiple streams tutorials, ...
while loop in java

convert int to String in java with example

In this post, we will learn to convert int to String in java with example Even this is a simple ...
filter operations in streams on java 

foreach in java8 using streams

In this tutorial, we will learn about foreach in java8 using streams In java8, We can easily iterate a list ...
while loop in java

compare two dates in java example

  In this post, we will learn to compare two dates in java example There are multiple ways to compare ...
while loop in java

convert String to date in java with example

In this tutorial, we will learn to convert String to date in java with example.While we working with java this ...
while loop in java

add 3 days to the current date in java

In this post we will learn to add 3 days to the current date in java While we working with ...
filter operations in streams on java 

sorting operations in java using streams

In this example, we learn sorting operations in java using streams In Java 8 it is easy to sort records ...
filter operations in streams on java 

filter operations in streams on java 

In this example we learn filter operations in streams on java  In Java 8 it is easy to filter record ...
filter operations in streams on java 

Iterate list using streams in java

In this example, we will learn about iterate list using streams in java with exampleIt was introduced on Java 8 ...
How to install Apache Maven in windows

Create a Maven Project using command prompt

In this tutorial we will learn to create a maven project using command prompt  Prerequisites Java installed If not Refer: ...
How to install Apache Maven in windows

Set Maven Home in Windows

In this tutorial we will learn to set Maven home in windows. Please refer my previous tutorial to download and ...
How to install Apache Maven in windows

How to install Apache Maven in windows

In this tutorial we will learn about install apache maven in windows operating system Maven is a software project management ...
while loop in java

Run shell script from java with Example

In this example we will learn to run bash command and invoking a shell script file from java Java is ...

Ternary Operator in java with example

In this example we will learn to use ternary operator in java with example Ternary Operator will be used instead ...

Switch Case in Java with Example

  Switch Case in Java with Example is most used condition based approach in java. It is similar from other ...

How to set java home in windows

Prerequisites Java Installed locationTo Install Java please refer below linkhttps://beginnersbug.com/how-to-install-java-in-windows/windows operating system Step 1 Copy jdk home pathexample: C:\Program Files\Java\jdk1.8.0_171 ...

How to install Java in Windows

Prerequisites Windows 10 Operating SystemDownload AccessOracle accountAdministrator access on windows Step 1 Download JDK from Oracle websiteURL : https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Open ...

Overriding concept in java with example

In this tutorial, we will learn Overriding concept in java with example Overriding is a feature that allows a child ...

Method Overloading in Java with example

In this tutorial we will learn Method Overloading in Java with example. Overloading is an example of polymorphism (OOPS concept) ...

Print a String in java with example

In this tutorial, we will learn to print a String in java with example Syntax System.out.println(""); Example public class PrintExample ...

Datatypes in java

In this post, we will learn about Datatypes in java and it's default value Below are the list of primitive ...

Convert String to lowercase using java

In this example we will learn to convert a String to lowercase using java Syntax toLowerCase(); Copy Example public class ...

Check key exists in Hashmap Java

In below example we are going to Check key exists in Hashmap java Syntax containsKey() Copy Example import java.util.HashMap; import ...

Helloworld in java

In this example we will learn how to print helloworldHelloworld is the first program in all language by programmers Prerequisites ...

Print non repeated characters in java

In this example we will print non repeated characters from a string using java This is mostly asked in the ...

Print String reverse using java with example

Print String in reverse using java with example. This is most asked qustion in java interviews In below example we ...

Difference between StringBuffer and StringBuilder in java

In this tutorial, we will learn the difference between StringBuffer and StringBuilder in java StringBuffer and StringBuilder are mostly used ...

StringBuffer example in java

In Below example we will learn how to use StringBuffer example in java StringBuffer is a thread safe, which means ...

StringBuilder in java with example

In this tutorial we will learn StringBuilder in java with example. StringBuilder in java is widely used to concat two ...

Split String in java using delimiter

In this tutorial we will learn how to split a string in java using delimiterwe will use split method to ...

String to int in java

Converting string to int in java is frequently used by java developers,In this example we will learn how to convert ...
while loop in java

Sort an Arraylist in java with example

In this tutorial, we will learn how to Sort an Arraylist in java with example by ascending order using collections ...

HashMap in java with example

In this tutorial we will learn about HashMap in java with example Hashmap is used store key and value pair ...
while loop in java

ArrayList in java with example

  In this tutorial we will learn ArrayList in java with example  In Java we can achieve the dynamic array ...

print current date in java with example

In this post we will learn to print current date in java with examplesHere we used Date.java from java.util packageIn ...

do while in java with example

In this tutorial, we will learn do while in java with example do while is little bit different from other ...

for loop in java

for loop used to iterate an array or used to repeat a set of code for predefined times Syntax for(;;){ ...

while loop using boolean datatype in java

In this tutorial, we will learn about while loop using boolean datatype in java we can make an infinite loop ...
while loop in java

while loop in java

  In this post, we will learn about while loop in java with an example while is a keyword in ...

If else condition in java

In this tutorial, we will learn about If else condition in java if else is used to check the logical ...

Exception Handling in java

In this tutorial we will learn about Exception Handling in java What is Exception Any Error occurred while compiling or ...