8:15 pm - Saturday April 20, 2019

Author Archives: Mathan Lal

Thread Join Java Example Program | Java Thread

Join() method helps us to join one thread to the end of another thread. Here is a simple java thread example program. // Thread Example Program for join() /** @author: candidjava.com @description: The program waits until the thread dies */ class...

Hibernate training in chennai

Hibernate Training Open source object-relational mapping (ORM) library for Java language.  Hibernate’s primary feature is mapping from Java classes to database tables. Getting trained in Hibernate ORM framework will stop your job search,...

Adaptive Particle Swarm Optimization

Abstract An adaptive particle swarm optimization (APSO) that features better search efficiency than classical particle swarm optimization (PSO) is presented. More importantly, it can perform a global search over the entire search space with...

Java Collections frequency example program

Here is a java example program for collections frequency operation in Collection c, Object o. The main function of this method is to get the frequency of an element present in the specified list of Collection. Here how to do java collections...

Spring MVC with ControllerClassNameHandlerMapping

BACK ControllerClassNameHandlerMapping case sensitive Tutorial: Learn how to handle URL requests mapping in Spring MVC. By checking three basic handler mapping classes which is based for Spring MVC provides for handling URL requests. These...

Java Program to Get Size of LinkedHashMap – Hashmap in Java

A LinkedHashMap is a combination of hash table and linked list. It has a predictable iteration order. Here simple java programming examples of getting hash map size in java.   import java.util.LinkedHashMap; class GetSizeOfLinkedHashMap...

Java Program for finding Fibonacci Serious numbers

Here is a simple java example program to find out the Fibonacci series of numbers. class Fibonacci { public static void main(String args[]) { System.out.println("How many numbers of the sequence would you like?"); InputStreamReader...

Java program for Find the Prime Numbers

In basics, Prime numbers are only divided by ‘1’ and number itself. At the same time, all the prime numbers are greater than ‘1’. Here is a simple prime number program in java with an example to find prime numbers from...

JSP TUTORIALS

Introduction to JSP Java Server pages (JSP) is a server side programming language helps to build  dynamic web based applications. Read More... JSP Building blocks and its types Scripting Elements in JSP and its types Expression in JSP Declaration...

Check if a particular key exists in HashMap example

Here is an example program for checking  the key  which exists in a hashmap //*@author :CandidJava.com //*@descriptions : This program explain the function and use of Key method to find that the value is present or not import java.util.HashMap; class...

Hashtable Example program for values()

Here is the hash table sample program for values, in this sample hashtable program adding values within the double quotes as shown in the following example program.   *@author:candidjava.com *@description:hash table for values */ import...

Oops Interview Questions in java

1. What’s the difference between constructors and normal methods? Constructors must have the same name as the class and can not return a value. They are only called once while regular methods could be called many times and it can return...

StringBuilder Example Program for offsetByCodePoints(int index,int codePointOffset)

Following simple example program to demonstrate how offsetByCodePoints(int index,int codePointOffset) using StringBuilder. /** *@author:candidjava.com *@description:StringBuilder Example Program for offsetByCodePoints(int index,int codePointOffset) */ class...

Hibernate Interview Questions and Answers part 12

1. What are the different levels of ORM quality? There are four levels defined for ORM quality. Pure relational Light object mapping Medium object mapping Full object mapping 2. What is Hibernate? Hibernate is a powerful, high performance...

Hibernate Interview Question11

1. What are Extension interfaces? When the built-in functionalities provided by hibernate is not sufficient enough, it provides a way so that user can include other interfaces and implement those interfaces for user desire functionality. These...

Hibernate Interview Question and Answers Part 10

1. What is HQL? HQL stands for Hibernate Query Language. Hibernate allows the user to express queries in its own portable SQL extension and this is called as HQL. It also allows the user to express in native SQL. 2. What is object/relational...

Hibernate Interview Questions and Answers – Part 8

1. Types of locks Read lock Write lock Execute lock Fetch lock Save lock 2. What is 2-phase lock? Read only transaction Update transaction 3. What are the design patterns used in hibernate? Composite design DAO Design Pattern Abstract...

Hibernate Interview Questions and Answers- Part 7

1. What is the purpose of dialect? There are two concepts here a Dialect and a Driver, Driver is like English. Dialect is the different pronunciations of English. We all know there are different versions of Oracle… Oracle 9i, Oracle8. The...

Hibernate Interview Question and Answers Part 9

1. What is caching? Anything you can do to minimize traffic between a database and an application server is probably a good thing. In theory, an application ought to be able to maintain a cache containing data already loaded from the database,...

Hibernate Interview Questions and Answers – Part 1

Hibernate Interview Questions Hibernate is one of the ORM tool developed for Java applications. for providing database oriented services hibernate was mostly used in enterprise related applications. Having knowledge in Hibernate will add advantage for...