Java Introduction

Java is an object-oriented programming language with its own runtime environment. What is Java? Java is an object-oriented programming language developed by Sun Microsystems and released in 1995. Java was originally developed by James Gosling at Sun Microsystems (which has since merge into Oracle Corporation). Java programs are platform independent which means they can be run on any operating system with any type of … Continue reading Java Introduction

How to Compile a Java File Using javac

javac command is used to compile a .java file. You can directly run javac in command prompt if environment variable is set correctly. Best way to check it by executing javac command, and if system cannot find javac then you have to set environment variable. How to compile a java file using javac command. Example: c:\jdk\appdemo> javac Testfile.java Program … Continue reading How to Compile a Java File Using javac

Difference Between Path and Classpath

Path and Classpath looks similar, but is a big difference between them. What is Path in Java? Once you installed Java on your machine, it is required to Set the PATH environment variable to conveniently run the executable (javac.exe, java.exe, javadoc.exe, and so on) from any directory without having to type the full path of … Continue reading Difference Between Path and Classpath

History of Java Technology

James Gosling, Patrick Naughton, Chris Warth, Mike Sheridan and Ed Frank initiated the Java language project in June 1991. The idea was to develop a language which was platform-independent and which could create embedded softwares for consumer electronic devices. The language took 18 months to develop and had an initial name as Oak which was renamed to Java in 1995, due … Continue reading History of Java Technology