javase

New features in java 7

What new features in java 7 is going to be implemented? And what are they doing now? ...

Java, Java VM, Java Platform, ...

Can someone explain the differences of the Java Platform SE (6), Java, Java VM, etc.? Thanks. ...

Ignore System.exit() from other class

Given the class below, public class ClassOne { public static void main(String... args) { System.exit(1); } } The following class will be destroyed as well, assuming there are other things to do after ClassOne.main is invoked. public class ClassTwo { public static void main(String... args) { ClassOne.main(a...

Hibernate 3.0 + ElementCollection class missing.

Hi, I created a small desktop project using Hibernate, to understand how enterprise patterns are applied in there. I'm using annotations, and wrote a class to wrap my session factory public class Hibernation { private static final SessionFactory sessionFactory; static{ try{ //sesionFactory = new org.hibernate.cfg....

Java IO (javase 6)- Help me understand the effects of my sample use of Streams and Writers...

BufferedWriter out = new BufferedWriter( new OutputStreamWriter( new BufferedOutputStream( new FileOutputStream("out.txt") ) ) ); So let me see if I understand this: A byte output stream is opened for file "out.txt". It is then fed to a buffered output stream to make file operations faster. The buffered stream is fed to an output str...

How to prevent non-repeatable query results using persistence API in Java SE?

I am using Java SE and learning about the use of a persistence API (toplink-essentials) to manage entities in a Derby DB. Note: this is (distance learning) university work, but it is not 'homework' this issue crops up in the course materials. I have two threads operating on the same set of entities. My problem is that every way I have t...

How do I build the JavaME jars with ant? and can i do it while running in javaSE?

Hi I have source code that ant builds into a javaSE jar, and we ship that, ant also at the same time builds the source for a JavaME project. which I currently then open netbeans and let it compile the jars for JavaME, i'd like to do this last bit in ant and wondered if its possible and if so how? ...