Tuesday, December 11, 2007

Installing Java Software

First of all you have to install the . You can download the Java software from www.java.com. After you finish the installation you may need to adjust your PATH and CLASSPATH environment variables. Instructions are included with the JDK.I put all of my stuff into a directory called java (off of my root, C:\, in Windows and off of my home directory in unix). On my windows machine, my PATH includes

"C:\j2sdk1.4\BIN;C:\j2sdk1.4\JRE\BIN".

and my CLASSPATH is set to

".;C:\JAVA" (notice the dot before the first semicolon)

Get Java Software

Tuesday, December 4, 2007

Important Interview Questions In Java For Freshers

-->What is the difference between '#include' we find in C language and 'import' that we find in Java?

A: '#include' makes the compiler to copy the entire header file code into a C or C++ program.So the program size increases and it wastes the memory and also the processor time

Import statement makes 'JVM' to go to java library,execute the code there and substitute the result into the Java program or application. In this case no code is copied.Therefore Import is more efficient than #include, as both memory along with processor time is saved.

-->What is Java Runtime Environment?(JRE)

A: JRE = JVM + Java Library.

-->What is uni-code system?

A:Uni-code is a standard to include the alphabet of all human languages into the character set of Java.
N:Uni-code uses two bytes to represent a single character.

-->What is the difference between Float and Double data types in Java?

A: Float can represent upto 7-digits after decimal point accurately, while double can represent upto 15-digits accurately after decimal point.