Introduction to Java Module System in Java 7.0

java-thumbnail

This article explains the new Java Module System that will be included in the Java 7.0 release. Modules are new to the java language and they provide a standard for developing and deploying applications. The article will explain the various sub components that are available as part of the Java Module System’s architecture. The various […]

Functional Testing using Apache JMeter

java-thumbnail

Introduction to Functional Testing JMeter is found to be very useful and convenient in support of functional testing. Although JMeter is known more as a performance testing tool, functional testing elements can be integrated within the Test Plan, which was originally designed to support load testing. Many other load-testing tools provide little or none of this feature, restricting themselves […]

Swing Extreme Testing : Learn Swing user interface testing strategy

java-thumbnail

The ‘Ikon Do It’ application has a Save as function that allows the icon on which we are currently working to be saved with another name. Activating the Save as button displays a very simple dialog for entering the new name. The following fi gure shows the ‘Ikon Do It’ Save as dialog. Not all values are allowed as […]

JDBC connection in JDeveloper with MySQL database

java-thumbnail

The Java Database Connectivity (JDBC) API is used to access a SQL database from a Java application. JDBC also supports tabular data sources, such as a spreadsheet. Oracle JDeveloper is a free Integrated Development Environment (IDE) for modeling, developing, debugging, optimizing, and deploying Java applications. JDeveloper 10g is used to develop J2EE applications comprising the JSPs, […]

Circular Linked List in Java

java-thumbnail

Had to implement a circular linked list recently. Here’s my take, suggestions are welcome. The list can be parameterized for any type which has a meaningful equals method defined. The main method shows a sample usage of the Circular linked list with the String type. Only add, remove and size method are implemented. also read: […]

Sample code for SimpleDateFormat

java-thumbnail

also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File IO Tutorials

Sample code for Listing file names in a directory

java-thumbnail

also read: Java Tutorials Java EE Tutorials Design Patterns Tutorials Java File IO Tutorials

Mixing Generics And Non-Generics Code

java-thumbnail

If we are work on code that uses generics that is fine and what will happen if we want to mix both generic and non generic code. Consider below Animal class also read: New Features in Java 5.0 Generics in Java 5.0 Annotations in Java 5.0 if we create the list like below will it […]

How to use ? extends in Generics?

java-thumbnail

In generics as we know we can not assign subclass generic type to super class generic type, for example will not compile even though Dog IS-AN Animal. the reason for this is already explained in generics basics section. How can we solve this particular problem????? we can solve this problem by using wildcard in generics, […]

Using ? super in generics – Java 5.0

java-thumbnail

As we know we can not add any value except null to collection if we use ? extends syntax. What if we want to add value to the collection, then we have to use ? super syntax. The code looks like this. also read: New Features in Java 5.0 Generics in Java 5.0< Annotations in […]