Questions tagged [java-6]

Java SE version 6 was released in December 2006. Use this tag for questions specific to this version of Java.

Java SE 6 was an evolutionary change over the previous version. It did not include extensive language or JVM changes, however such changes were planned for Java SE 7 which was supposed to be released much sooner. (See here for what changed in Java 6).

As a stop-gap to the much delayed Java 7, Sun (since purchased by Oracle) introduced Java SE 6 Update 10, which despite its modest version numbering, represented extensive improvements to the GUI capabilities of Java in order to support JavaFX and Sun's renewed attempt to make Java successful in the GUI arena.

Internally, Java is numbered with a "1." before the number, so it will report itself as "1.6.0_" with an update number at the end. Starting with version 6, Sun dropped the ".0" from its marketed version number, so instead of 5.0 as previously done, it was Java 6.

Only use this tag if your question is specifically related to features of this version. Just because you are using this version, doesn't mean you need this tag. Use in addition to or instead of this tag.

See for more information.

1391 questions
-2
votes
3 answers

why cannot we use default access modifier and abstract keyword together for a method in a interface?

I was just wondering why cannot we have default and abstract keywords next to each other in an interface ? public and abstract is allowed for an interface and default is public in nature when it comes to the same package. So why public abstract and…
Jayanth
  • 746
  • 6
  • 17
-2
votes
1 answer

JAVA Migration 1.6 to 1.8 and 11

I have a project built on EJB framework, JSP and Servlet. So far it was running fine on Java 1.6 but since now Oracle has announced to stop support, it compelled us to expedite process to move to 1.8 and then 11 JAVA versions. My questions are -…
Sandy
  • 11
  • 3
-2
votes
3 answers

Deployment of EAR file on Websphere 8.5.5.x server

I have an ear file written in java and and is deployed on WAS 6.1. This ear file contains java code written in 1.4. Now there is upgraade on WAS to 8.5.5.x where in i have to deploy this ear file on it. Will it work on was 8.5.5.x . Do we have to…
-2
votes
1 answer

run a jdk1.4 compiled jar on jdk1.6

I want to run a jdk1.4 compiled jar on jdk1.6. Will there be anything wrong about it. JVM is forward compatible, so I think there will be no problem. Is it true.
-2
votes
1 answer

Difference between '\Z' and '\z' in java.util.regex.Pattern

What is the difference between the JDK6 java.util.regex.Pattern's "Boundary matchers" '\z' and '\Z'? Background: I was trying to read a UTF-8 encoded file's contents into a String. Came across this solution. I discovered that…
BiGYaN
  • 6,974
  • 5
  • 30
  • 43
-2
votes
2 answers

Two questions about hard understanding Java code

I am reading Java source code, encounter two little questions. I don't know why Sun write code like this, here are questions (JDK version:1.6): Question 1: java.util.concurrent.PriorityBlockingQueue#offer(E e): public boolean offer(E e) { …
hiway
  • 3,906
  • 10
  • 34
  • 57
-3
votes
0 answers

How to enable TLS 1.3 with java 1.6 using bouncy castle

When i sysout text solution it shows "[SSLv2Hello, SSLv3, TLSv1]." i have followed steps provided in text but does not seem to work . The site uses TLS 1.3 (checked in developer tools/security) Java version 1.6 release 45 i have followed steps…
Lord Levii
  • 15
  • 3
-3
votes
2 answers

date issue in java when upgraded from java 1.4 to java 8

Recently we upgraded java runtime environment in UNIX from jdk 1.4 to jdk 8. What we found is, the date that is getting inserted in oracle database is with timestamp (dd-mm-yyyy hh:mm:ss). Before upgrade, it was only date (dd-mm-yyyy). Is this is…
raajaag
  • 175
  • 4
  • 18
-3
votes
2 answers

Count duplicates in array list

Arraylist al = new ArrayList(); Random r = new Random(); int arr[] = new int[100]; for (int i = 0; i < arr.length; i++) { // assuming the array variable is named arr... arr[i] = r.nextInt(200); al.add(arr[i]); } Output should be like…
-3
votes
2 answers

check if a date is equal independently of the year

I use javaSE 1.6 and I need to compare two dates and check if they are the same. this check needs to be independent of the year. for example, i need to identify if today is the B-day of someone, and I need this code to be reused in the coming…
Ale
  • 31
  • 4
-3
votes
1 answer

Show other window when click button JavaFX

I want to solve my homework and I don't know how to start; the goal is to make 2 GUI Forms in JavaFX. The 1st is home form that contains Button1, and when the user clicks Button1 : show the 2nd Form and close the 1st. How to do that ? hope to give…
J.Darwain
  • 1
  • 1
  • 2
-3
votes
2 answers

Upgrading Project from JDK 6 to JDK 8

My current project is built on Java 6. I'm thinking of upgrading it to Java 8. Here is the details of the…
-3
votes
2 answers

Java program keep running, no compiler's error

I'm trying to write a code for selecting features from a txt file. i.e. size = 1.4356474 species = fw, wevb, wrg , gwe .... this is the code I wrote so far: import java.io.BufferedReader; import java.io.FileNotFoundException; import…
Pino
  • 619
  • 1
  • 8
  • 25
-3
votes
1 answer

Java Virtual Machine Error

I have been working on an application which was originally built with JDK 1.5.0. While playing around with the application I have somehow regenerated the classes to version 1.6.0. Due to classes being updated the java compiler version 1.5 cannot…
-3
votes
1 answer

Steps to Migrate Code from Java 6 to Java 7 using eclipse

I have the existing codebase which runs on java6, but the current requirement is to upgrade the Java from java6 to java 7, Can anyone please let me know the steps, how can i upgrade it using eclipse(because i am using eclipse as IDE)?.
1 2 3
92
93