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
Java Installation
Java SE(Standard Edition) is freely available on Oracle’s website, and it can be installed like any other software. Check whether java is installed or not In the command prompt enter command javac. If you see a screen like below, it means Java is Installed. javac command is used to compile a Java program, it creates a class … Continue reading Java Installation
JVM, JRE, & JDK
Java Virtual Machine (JVM) The Java Virtual Machine is called JVM, is an abstract computing machine or virtual machine interface that drives the java code. JVM is the engine that drives the java code. Mostly in other Programming Languages, compiler produce code for a particular system but Java compiler produce Bytecode for a Java Virtual … Continue reading JVM, JRE, & JDK
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