Tags » Java 2

JSP TAGS Scriptlets and expressions

Scriptlets is used to execute Java code while JSP expression is used to display text.

Request object is not created when using in jsp hence it is also called implicit request object. 313 more words


Simple Java Program

import java.io.*;
import java.util.*;

public class helloworld {
	public static void main(String[] args) {
		int i;
		Scanner scan = new Scanner(System.in);
		System.out.println("Enter a number");
		i = scan.nextInt();
		System.out.println("You entered " + i);
… 6 more words

Maven Multi-Module Structure for Enterprise Java Projects (Best Practices)

Many times, I am trying to resolve several basic or complex Maven /  Java EE  project structure issues, on my day work. In order to provide the solutions,  I often end up experimenting with the project structure and it’s effectiveness. 563 more words


How to customize Hibernate dirty checking mechanism


In my previous article I described the Hibernate automatic dirty checking mechanism. While you should always prefer it, there might be times when you want to add your own custom dirtiness detection strategy. 1,091 more words


Java and JNI example


pre-requisite – Install Java SE Development Kit 6u14 under /usr/jdk1.6.0_14

1) Write a JAVA class [ HelloWorld.java ]

public class HelloWorld  { 159 more words


add/offer, remove/poll, element/peek methods of Queue interface explained

The Queue interface in java extends the Collection interface. So, it provides Collection interface methods for select, insert, delete operations & apart from these, it also has few additional methods implemented for the same operations. 220 more words


Algorithm {Binary Tree Maximum Path Sum}

Hey, I’ve just solved one more problem from leetcode and going to share that solution. So, solved problem calls Binary Tree Maximum Path Sum. 328 more words