Skip to main content

Introduction to Java

Java is a high-level programming language originally developed by Sun Microsystems and released in 1995. Oracle Corporation took acquisition of Sun Microsystems in 2009-10. Java runs on a variety of platforms, such as Windows, Mac OS, and the various versions of UNIX.
Features of Java :
Simple
Object-Oriented
Platform independent
Secured
Robust
Architecture neutral
Portable
Dynamic
Interpreted
High Performance
Multithreaded
Distributed

What is JVM ? 
Java Virtual Machine (JVM) is a virtual Machine that provides runtime environment to execute java byte code. The JVM doesn't understand Java typo, that's why you compile your *.java files to obtain *.class files that contain the bytecodes understandable by the JVM.
 What is JRE ? 
The Java Runtime Environment (JRE) provides the libraries, the Java Virtual Machine, and other components to run applets and applications written in the Java programming language. JRE does not contain tools and utilities such as compilers or debuggers for developing applets and applications.
What is JDK ?
The JDK also called Java Development Kit is a superset of the JRE, and contains everything that is in the JRE, plus tools such as the compilers and debuggers necessary for developing applets and applications.

Comments

Post a Comment

Popular posts from this blog

CALCULATE PERCENTAGE

Calculate percentage #include < stdio.h > void main() { int s1, s2, s3, s4, s5, sum, total = 500; float per; printf("\nEnter marks of 5 subjects : "); scanf("%d %d %d %d %d", &s1, &s2, &s3, &s4, &s5); sum = s1 + s2 + s3 + s4 + s5; printf("\nSum : %d", sum); per = (sum * 100)/500; /* percentage formula*/ printf("\nPercentage : %f", per); }

GREATEST OF 3 NUMBERS

Greatest of 3 numbers #include < stdio.h > void main() { int a,b,c; printf("enter any three numbers:\n"); scanf("%d%d%d",&a, &b, &c); if(a>b&&a>c) /*if a is greater than b & c*/ printf("greatest number is: %d",a); else if(b>c) /*if not a then if b is greater than c*/ printf("greatest number is: %d",b); else /*if a & b are not greater*/ printf("greatest number is: %d",c); }

SWAPPING TWO NUMBERS

Swapping two numbers #include < stdio.h > int main() {   int x, y, temp;   printf("Enter the value of x and y\n");   scanf("%d%d", &x, &y);   printf("Before Swapping\nx = %d\ny = %d\n",x,y);   temp = x;   x = y;   y = temp; /*using temp to swap storing x to temp and y to x then moving temp to y*/   printf("After Swapping\nx = %d\ny = %d\n",x,y);   return 0; }