If you want to check programmatically the Java 32 bit / 64 bit version then Java has system property
System.getProperty("sun.arch.data.model")
This will either return 32 or 64. , Then you can decide JVM bit version
run command java -version
C:\>java -versionif you see 64-Bit in the third line, then it is 64 bit Java otherwise it is 32 bit Java.
java version "1.8.0_73"Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)