java basics
-
hibernate
Hibernate SQL Parameter Values using Log4j Example
When using Hibernate, if developers log the Hibernate SQL statements, they will see something like this: Hibernate: insert into student…
Read More » -
nio
Java Nio Delete File Example
If developers are working on a Java Swing or a desktop application then it may be required that sometimes developers…
Read More » -
Core Java
Lombok Utility and Scrapbook an eclipse feature
Today we are going to see couple of utility features which could ease coding and help you save some time.…
Read More » -
IDE
IntelliJ GUI Designer Example
This example demonstrates how you can utilize IntelliJ GUI Designer to create a graphical user interface that is based on…
Read More » -
IDE
IntelliJ IDEA Tutorial for Beginners
This example demonstrates how you can get started with IntelliJ IDEA for the first time. Intellij IDEA is a JetBrains…
Read More » -
synchronized
Synchronization with multiple locks
The basic idea is to use separate locks to guard multiple independent state variables of a class, instead of having…
Read More » -
synchronized
Synchronized method and block
The first level of synchronization is on method scope: public class HelloSync { private Map dictionary = new HashMap(); public…
Read More » -
Java Basics
Simple Do While loop Java Example
1. Introduction A do-while loop in Java is a control flow statement that executes a block of code at least once, and then repeatedly executes…
Read More » -
for loop
Sum Array of Numbers with for loop
This is an example of how to get the sum of the numbers in an array using a for loop. The…
Read More » -
for loop
Check for Palindrome Number with for loop
In this example we shall show you how to check if a palindrome number exists in an array, using a…
Read More »