Top "Java-5" questions

Java SE version 5 was released in September 2004 and is no longer supported by Sun as of November 2009.

Java Generics: Generic type defined as return type only

I'm looking at some GXT code for GWT and I ran across this use of Generics that I can't find …

java generics java-5
How Can I create a generic HashMap to insert collections and objects?

How Can I instantiate a HashMap to put collections and objects?. //it's wrong Map<String,?>params=new HashMap&…

java generics hashmap java-6 java-5
ORA-28040: No matching authentication protocol : Oracle 12c Upgrade

We have migrated our Oracle database to 12c from 11g. We have a legacy application running in Java 1.5 and using …

oracle11g struts-1 oracle12c ojdbc java-5
Pop-up window in Java Swing

Can someone suggest me how to implement a pop-up window in Java Swing. I want the pop-up window to be …

java swing java-5
How to disable TestNG test based on a condition

Is there currently a way to disable TestNG test based on a condition I know you can currently disable test …

java eclipse annotations testng java-5
Java Quickly check for network connection

My issue is fairly straightforward. My program requires immediate notification if a network connection is lost. I'm using Java 5, so …

java networking java-5
What is the use of <T> in public static <T> T addAndReturn(T element, Collection<T> collection){

I get confused when I come across a generic method of this sort. public static <T> T addAndReturn(…

generics java-5
What is the easiest way to iterate over all the key/value pairs of a java.util.Map in Java 5 and higher?

What is the easiest way to iterate over all the key/value pairs of a java.util.Map in Java 5 …

java collections foreach java-5
Is is possible to build java code using JDK 1.6 to run on JRE 1.5?

Is there an option to build java code to run on JRE 1.5 when compiled using JDK 1.6? PS: I am new …

java java-6 java-5
Java method works in 1.5 but not 1.6

I have an application which has been running happily under Java 1.5 for around a year. We've just had the boxes …

java xml incompatibility java-6 java-5