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 …
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 …
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 …
Struts2 Spring 3 Integration Example Now the 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 …
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 …
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. …
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 Diego computer scientists. In simple video games, there is usually some …
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 the last article, we …
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 …
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 …