Java Basics

JVM: Java Virtual Machine Architecture and Structure

JVM is responsible for taking .class file and converting that .class file in machine code instructions that can be executed by microprocessor. It’s not a machine, it’s a program. JVM verifies the code before execution (Sandbox Security). JVM is platform dependent and it is heart of Java language. There are four phases of JVM Load …

JVM: Java Virtual Machine Architecture and Structure Read More »

How to Write, Compile and Run Your First Java Program?

Before running Java programs you need to install and setup java. For installation guide read: Java Installation: Downloading, Installing and Setting Path How to write and run Java programs? Open notepad and write below program.   class demo {                 public static void main(String…S)                 {                                 System.out.println(“Java Programming”);                 } } Now save the file …

How to Write, Compile and Run Your First Java Program? Read More »

Java Installation: Downloading, Installing and Setting Path

In this tutorial we will learn how to download and install Java and then setting path to make Java programs run. Downloading and Installing To download the latest JDK version visit link: http://www.oracle.com/technetwork/java/javase/downloads/index.html Now click on Download button to go to download page. Select Accept License Agreement and then download appropriate version for your operating system. …

Java Installation: Downloading, Installing and Setting Path Read More »