vulab | Category Archive | Core Java

Archive | Core Java

Posted on 01 October 2015 by VPhani

Spring Data JPA with Java configuration

STEP ONE: Create New Dynamic Web Project In Eclipse IDE We are creating a web project as we ultimately want to build a REST web service also. REST web service will use the Spring Data JPA layer to work with the database. You will need JDK 7 or JDK 8 installed on your machine. You […]

Continue Reading

0 Comments

Posted on 03 February 2015 by Srinivas Nelakuditi

Java Interview Questions

VULAB is the best online provider for advanced Java training. We have successfully trained hundreds of teams and developers in Java. Vulab’s best java online training courses are ready for your enrollment. Object Oriented Programming (OOP) Java is a computer programming language that is concurrent, class-based and object-oriented. The advantages of object oriented software development are […]

Continue Reading

0 Comments

Posted on 26 December 2014 by Jawahar Jasthi

Cutomized object sorting in java using Comparable

There can be a situation where  a  list of objects need  to be sorted a particular way .This can be easily achieved by using comparable interface. The following example shows the usage of comparable interface to sort list of snacks using comparable interface . package com.vulab.comparable.example; /** * @author jawahar * */ public class Snack […]

Continue Reading

0 Comments

Posted on 11 December 2014 by Jawahar Jasthi

Custom annotations in java

Annotations construct was introduced as a part of Java SE 5.Custom annotations are rarely used at enterprise level . By definition an annotation is a metadata that can be added to Java source code. Annotations can be added for  classes, methods, variables, parameters and packages. In general annotations are tags that can be used by a utility class for […]

Continue Reading

0 Comments

Posted on 06 December 2014 by Jawahar Jasthi

Pagination with Hibernate ORM or JPA

Pagination of search results is a common requirement for many applications .Database pagination allows you to go through a result set in manageable chunks. This is an important feature when a result set is large. Imagine if the user selects the first result of 500 results returned. Essentially 499 results were wasted. This very taxing […]

Continue Reading

0 Comments

Posted on 04 November 2014 by Srinivas Nelakuditi

Java Concurrency Multithreading Tutorial -1

Computers can do a lot of things but they cannot automatically do concurrent programming. Let us learn how to do Concurrent Programming with Java. Java concurrency tutorial from vulab is best java training program, join the program if you want to learn from Java Guru and Expert. We are going to learn by Example. Question: […]

Continue Reading

0 Comments

Posted on 01 November 2014 by Srinivas Nelakuditi

Java Volatile Keyword Learn by Example

The Java volatile keyword is used to mark a Java variable as “being stored in main memory”. This feature is available since JDK 5. In Simple Language: If you have CPU 1 running Thread 1 and CPU2 running Thread 2. If you want a variable to be used by both the threads, if you declare […]

Continue Reading

0 Comments

Posted on 31 October 2014 by Srinivas Nelakuditi

Quick Path to Learn Java with Vulab Java Training

If you are reading this blog, I know you are interested in getting trained on Java. Let us get started with the basics. if you want to learn from Java Experts look no further and we at Vulab provide the best java training. Java is the programming language created by Sun Micro Systems and released […]

Continue Reading

1 Comment

Posted on 25 October 2014 by Srinivas Nelakuditi

Java 8 Lambda Expressions Tutorial -7

Let us use Java 8 Lambda feature to do a stream sorting, limiting and collecting the output to a list. We are going to learn by example. We will create a list of few BankCheckingAccount objects. We are going to use lambdas to sort and limit only two records and we will store the output […]

Continue Reading

0 Comments

Posted on 25 October 2014 by Srinivas Nelakuditi

Java 8 Lambda Expressions Tutorial -6

Java 8 Lambda Feature can also be used to filter streams and also limit the number of records required from stream. In the below example. We are creating a list of BankCheckingAccounts. We are depositing 1000 dollars into every account using lambdas. We are creating a balance filter and zip code filter. We are printing […]

Continue Reading

0 Comments