Skip to main content

Posts

Variables and Constants

While Programming in any programming language its necessary to store data this data can be of any type like alphabets,numbers,string these data must be stored properly and must be accessible easily and hence we store data in computers memory and name them with name, This is called variables
Recent posts

Java Compilation Process

WORA Before knowing how java compilation works,We have to know something called WORA - Write Once and Run Anywhere. Java compilation works like a kind of WORA , we can write java code once and we can compile that in different platforms with JRE(java runtime environment) JAVA COMPILATION PROCESS    FIG-1 As show in the FIG-1 only JRE can understand the ByteCode, N Source Code The code written by developer are said to be the source code.In this case code written in java is stored in a file name with the extension     .java   class Simple{ public static void main(String args[]){ System.out.println("Hello Java"); } } Save this file as     mycode.java   Javac Javac is just a  compiler for compiling java programs,It cannot execute the source code ,Its purpose is only to check and return error if any syntax error is found ,Else it compiles and produce the bytecode  with the extension     .class   For instance if