Follow us on Facebook

Header Ads

Welcome to JAVA POint

INTRODUCTION TO JAVA

                                                              INTRODUCTION TO JAVA    .

JAVA was developed by Sun Microsystems Inc in 1991, later acquired by Oracle Corporation. It was developed by James Gosling and Patrick Naughton. 

It is a simple programming language.  Writing, compiling and debugging a program is easy in java.  It helps to create modular programs and reusable code.

*Java phrasing
Before we begin learning Java, lets get comfortable with regular java terms. 
Java Virtual Machine (JVM) 
This is by and large alluded as JVM. Previously, we examine about JVM lets see the periods of program execution. 
Stages are as per the following: we compose the program, at that point we order the program and finally we run the program. 
1) Writing of the program is obviously done by java software engineer like you and me. 
2) Compilation of program is finished by javac compiler, javac is the essential java compiler remembered for java advancement pack (JDK).
 It takes java program as info and produces java bytecode as yield. 
3) In third stage, JVM executes the bytecode produced by compiler. This is called program run stage. 
Along these lines, since we comprehended that the essential capacity of JVM is to execute the bytecode created by compiler.
 Each working framework has diverse JVM, anyway the yield they produce after execution of bytecode is same across all working frameworks.
That is the reason we call java as stage free language.

* BYTE CODE

As talked about above, javac compiler of JDK gathers the java source code into bytecode so it very well may be executed by JVM. The bytecode is saved in a .class document by compiler.

*JDK(JAVA DEVLOPMENT KIT).
While clarifying JVM and bytecode, I have utilized the term JDK. We should examine about it.
 As the name recommends this is finished java advancement pack that incorporates JRE (Java Runtime Environment), compilers and different devices like JavaDoc, Java debugger and so on 
To make, arrange and run Java program you would require JDK introduced on your PC.

*Java Run Time Envoirment.(JRE)
JRE is a piece of JDK which implies that JDK incorporates JRE. 
At the point when you have JRE introduced on your framework, you can run a java program anyway you will not have the option to aggregate it.
 JRE incorporates JVM, program modules and applets support. At the point when you just need to run a java program on your PC, you would just need JRE.

MAIN FEATURES OF JAVA 
                     JAVA Is a Platform Independent Language
  *Java is a object oriented Language *
Object oriented programming is a way of organizing programs as collection of objects, each of which represents an instance of a class.
4 main concepts of Object Oriented programming are:

Abstraction
Encapsulation
Inheritance
Polymorphism

Basic 

Java is considered as one of straightforward language since it doesn't have complex highlights like Operator over-burdening, Multiple legacy, pointers and Explicit memory portion. 

Vigorous Language 

Powerful methods dependable. Java programming language is created such that puts a ton of accentuation on early checking for potential mistakes, 
that is the reason java compiler can distinguish blunders that are difficult to recognize in other programming dialects.
 The fundamental highlights of java that makes it powerful are trash assortment, Exception Handling and memory assignment. 

Secure 

We don't have pointers and we can't access out of bound exhibits (you get ArrayIndexOutOfBoundsException in the event that you attempt to do as such) in java.
 That is the reason a few security blemishes like stack debasement or support flood is difficult to abuse in Java. 

Java is appropriated 

Utilizing java programming language we can make dispersed applications. RMI(Remote Method Invocation) and EJB(Enterprise Java Beans) are utilized for making dispersed applications in java.
 In straightforward words: The java projects can be circulated on more than one frameworks that are associated with one another utilizing web association. 
Articles on one JVM (java virtual machine) can execute systems on a distant JVM. 

Multithreading 

Java upholds multithreading. Multithreading is a Java highlight that permits simultaneous execution of at least two pieces of a program for most extreme usage of CPU. Compact 
As examined above, java code that is composed on one machine can run on another machine. The stage free byte code can be conveyed to any stage for execution that makes java code convenient.



0 Comments:

Post a Comment

C language and C++ progaming