Tag Archives: java

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 […]

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 […]

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. […]

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 […]

Introduction to Selenium

Introduction to Selenium

Selenium is an open source automation testing tool for web based applications. It’s easy to use and very flexible. Works on multiple browsers and multiple operating systems as compared to other tools in market. It support Android and Iphone Testing. You can use open source frameworks such as Junit, TestNG etc. and can write selenium test cases. Languages supported by Selenium: Java, C#, Ruby, Pyton, PHP Pearl Browsers supported by Selenium: FireFox, […]