Top "Java-7" questions

Java SE version 7 was released in 2011.

Java SafeVarargs annotation, does a standard or best practice exist?

I've recently come across the java @SafeVarargs annotation. Googling for what makes a variadic function in Java unsafe left me …

java java-7 variadic-functions
What's the purpose of try-with-resources statements?

Java 7 has a new feature called try-with-resources. What is it? Why and where we should use it and where we …

java java-7 try-with-resources
Java 7 underscore in numeric literals

When we must use a _ to separate digits in a number I don't understand the following case in which I …

java java-7
Get file/directory size using Java 7 new IO

How can I get the size of a file or directory using the new NIO in java 7?

nio java-7
Decrypt using Jasypt

How to decrypt the encrypted password using Jasypt library? package com.uk.mysqlmaven.jsf.test; import org.jasypt.util.password.…

java encryption windows-8 java-7 jasypt
Android import java.nio.file.Files; cannot be resolved

I am trying out the new Gmail API and the samples use the classes in the java.nio.file package, …

java android java-7
Java 7 default locale

I have just installed jre7 and I'm surprised to see that my default locale is now en_US. With jre6 …

java windows windows-7 locale java-7
Java Web Start broken since JDK 1.7

HERES THE ANSWER: It appears (through our testing) that Java 7 Web Start requires you to host your resources on a …

java jar jnlp java-7 java-web-start
com.sun.tools.attach.AttachNotSupportedException: Unable to open socket file: target process not responding or HotSpot VM not loaded

I get AttachNotSupportedException while running jmockit tests on linux (ubuntu 64bit). Java version is 1.7.0_51. This JDK is from Oracle. Tests …

linux java-7 jmockit
Where can I locate and browse JDK 7 source files?

Can anyone direct me to where the jdk 7 source is hosted?

java-7