Tag Archives: java training

What is Java Serialization?

Java Serialization is the process of converting an object into another stream of bytes. Through this, the object can now be written into a file. This is being transported into a network or into a database. The process of de-serialization is the vice versa of serialization. In other words, Java serialization is building or converting […]

What is JDBC?

If you have been learning Java, the question, “What is JDBC?” might have come to mind at some point. To put it shortly, JDBC is Java Database Connectivity; though that does not tell you much about what it is or does. Simply, it is an application for communicating with databases. As the name suggests, it […]

How to Become Oracle Certified Java Professional (OCJP)?

By far Java programming language has been one of the most preferred programming language for different platforms. If you are looking for a job in Java programming language then you can boost your employability by getting certified from Oracle in Java. Oracle conducts three levels of OCJP certification exams. In order to get detailed information […]

Static Storage vs Heap vs Stack

The following is the summary of compiler storage allocation. 1. Static vs Dynamic Static: Storage can be made by compiler looking only at the text of the program. One reason for statically allocating as many data objects as possible is that the addresses of these objects can be compiled into target code. Dynamic: Storage can […]

Template Method Design Pattern in Java

Template Method is a behavioral design pattern and it’s used to create a method stub and deferring some of the steps of implementation to the subclasses. Template method defines the steps to execute an algorithm and it can provide default implementation that might be common for all or some of the subclasses. Template means Preset format like HTML templates which […]

Struts2 Spring 3 Integration Example

Struts2 Spring 3 Integration Example Now first question comes here ,why you want to integrate spring with struts 2? Spring provides some features which are not available in struts 2.Most powerful among them is dependency injection.To learn more about dependency injection,you can refer dependency injection in spring link. Create project named “Struts2Spring3IntegrationExample”. First of all, you need […]

Listeners: Can Java Hear You?

What Sort of Listener Are You? If we tried to implement a full graphical interface in a program by using MouseListener, we’d have a lot of work to do. We’d have to draw all the buttons using drawing instructions in our program, then wait for mouse clicks. Once we got a click on something we’d […]

Java’s Inner Classes: The Keys to the Kingdom

An inner class is a Java class that’s defined inside another class. In both the examples above, I have a class called VGKernel, which is the class that implements the video game kernel. Inside that class, I define other classes. This has a special effect on the relationship between those classes and VGKernel. Normally, our […]

Java Video Game Programming: Game Logic

CodeSpells, an immersive, first-person player video game designed to teach students in elementary to high school how to program in the popular Java language, has been developed by University of California, San Diegocomputer scientists. In simple video games, there is usually some object in the game that does most of the “thinking” with respect to the game’s rules. […]

Jackson example – Read and write JSON

Java JSON Processing API is not very user friendly and doesn’t provide features for automatic transformation from Json to Java object and vice versa. Luckily we have some alternative APIs that we can use for JSON processing. In last article we learned about Google Gson API and saw how easy to use it. Jackson project has implemented a very […]

Introduction to hibernate framework

Hibernate is an open source object/relational mapping tool for Java. Hibernate lets you develop persistent classes following common Java idiom – including association, inheritance, polymorphism, composition and the Java collections framework. Hibernate not only takes care of the mapping from Java classes to database tables (and from Java data types to SQL data types), but […]

How to remove duplicates from ArrayList in java

You can remove duplicates or repeated elements from ArrayList in Java by converting ArrayList into HashSet in Java. but before doing that just keep in mind that Set doesn’t preserver insertion order which is guaranteed by List, in fact that’s the main difference between List and Set in Java. So when you convert ArrayList to HashSet all duplicates elements will be removed but insertion order will […]

How to configure Apache Tomcat 7 in eclipse

Building Apache Tomcat from source is very easy, and is the first step to contributing to Tomcat. The complete and comprehensive instructions are provided in the file BUILDING.txt. The following is a quick step by step guide. 1.Install Java. Building Apache Tomcat requires a Java 6 JDK to be installed and optionally a Java 7 JDK […]

Configuring Hibernate in Eclipse

Hibernate is an object/relational mapping tool for Java environments. What does it mean the term object/relational mapping? simply a technique of mapping a data representation from an object model to a relational data model with a SQL-based schema. Hibernate Installation/Setup on Eclipse IDE You should download the latest production release of Hibernate from the Hibernate website at http://www.hibernate.org/ orhttp://sourceforge.net/projects/hibernate/files/hibernate3/ and […]

Top 10 Most Common Java Mistakes

Top 10 Most Common Java Mistakes: 1. Neglecting Existing Libraries It’s definitely a mistake for Java Developers to ignore the innumerable amount of libraries written in Java. Many of them have been polished over the years of their existence and are free to use. These could be logging libraries, like logback or network related libraries, like Netty. […]

J2EE Standard Tools

J2EE Standard Tools J2EE Standard Tools will provide plug-ins for the development of J2EE Applications and support development, testing and debugging with a wide range of J2EE servers. The tools for J2EE will include: Server Tooling More than starting a VM Complex environmental setup and classloader models In process, local and remote development scenarios Must […]

Components of J2EE application

Components of J2EE application The J2EE Specification describes four types of components that can be created by a developer. It interacts with its host environment and other components through the J2EE APIs that are available to it. The application components are: Applet component Applet Components are client-side GUI components that are hosted by an applet container, which […]

Who can benefit from learning java?

Who can benefit from learning java? Java programmers develop business and Web applications for a variety of platforms using the Java Language.  Java programmers may collaborate with software developers and engineers. Java allows for fast processing in software applications and utilities for Internet, computer and mobile devices. Programmers often work seated at computers for most […]

Advantages of learning Java

Advantages of learning Java If you want to learn Java language you should know that it offers many advantages than other languages don’t have.  Easy to learn:  Java is an object-oriented, it’s quite easy to learn, especially if you know something about C and C++ Object Oriented Programming Language: Java is one of the few close […]

Top 5 Java Programming Books

1) Head First Java – Best book to Learn Java for Beginners Head First Java is the best Java book for any programmer who are new in both programming and Java. Head first Java covers essential Java programming knowledge about class, object, Thread, Collection, language feature like Generics, variable arguments or auto-boxing etc. They also has […]

Introduction to J2EE Architecture:

J2EE Introduction: Standard Edition (J2SE) as a basis, Java 2 Platform, Enterprise Edition (J2EE) builds on top of this to provide the types of services that are necessary to build distributed, large scale, component based, multi-tier applications.  J2EE is also a standard for building and deploying enterprise applications, held together by the specifications of the […]

What is the difference between Java and J2EE?

Core Java usually refers to Java SE which consists of the Java Language, the JVM and JDK (which itself contains the compiler some tools and a pretty large library). Enterprise Java refers to Java applications written for enterprises; the leading technology here is Java EE which consists of a set of APIs (EJB, JMS, JPA, […]

Java vs. Other Programming Languages

Java vs. Other Programming Languages:  Java is one of the most popular programming language and is used to create web applications, customized software and web portals, including E-commerce and M-commerce Solutions. 1.C++ Java was basically derived from C++. C++ was designed mainly for systems programming and extending the C programming language but Java was created initially to […]

Java Advantages and Disadvantages

 Advantages of Java: Simple: Java was designed to be easy to use, write, compile, debug, and learn than other programming languages. Java is much simpler than C++ because Java uses automatic memory allocation and garbage collection. Object-Oriented: Allows you to create modular programs and reusable code. Platform-Independent: Ability to move easily from one computer system to another […]


Introduction to Java

Java is a high-level, third generation programming language, like C, FORTRAN, Smalltalk, Perl, and many others. You can use Java to write computer applications that play games, store data or do any of the thousands of other things computer software can do. Compared to other programming languages, Java is most similar to C. However although […]