java – 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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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, ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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, ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More
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: ...
Read More
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 ...
Read More
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 ...
Read More
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 ...
Read More

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 ...
Read More

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 ...
Read More

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 ...
Read More

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 ...
Read More

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 ...
Read More

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) ...
Read More

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 ...
Read More

Datatypes in java

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

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 ...
Read More

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 ...
Read More

Helloworld in java

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

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 ...
Read More

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 ...
Read More

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 ...
Read More

StringBuffer example in java

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

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 ...
Read More

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 ...
Read More

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 ...
Read More
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 ...
Read More

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 ...
Read More
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 ...
Read More

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 ...
Read More

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 ...
Read More

for loop in java

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

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 ...
Read More
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 ...
Read More

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 ...
Read More

Exception Handling in java

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