java.com |
125 million TV devices, 9 million Developers Worldwide, 3 billion mobile phones currently are running by Java. Why Java is so popular and widely used? Being student at Nazarbayev University majoring Computer Sicence, let me explain more about Java.
java.com |
Java is high level programming language. Mostly used to develop software programs, web contents, game applications.
Why Java ?
There are several reasons of Java to be famous all around the world. Firstly, programs written in Java do not depend on a computer type. Different machines will able to run the same program. More precisely Java translates program to a simpler form called bytecode and when it is time to run your code, Java Virtual Machine will perform your program.
Secondly, Security and memory management controlled by JVM. Any kind of operations trying to change the authority of the program (for example, connection to another computer), JVM will take care and warn you. Java Virtual Machine has a function called Garbage Collection. It contorls memory management. Garbage collector automatically deletes objects that will no longer be used, by that releasing memory to future use.
How to code in Java ?
Programming languages need special environment, where it can be applied. Intergrated Development Environment (IDE) is an application used to create programs. As it was discussed before in our lecture(Fundamentals of Programming, moodle.nu.edu.kz), it includes:
- A code editor
- Compiling tools
- Program executer
- Debugger
www.neatbeans.org |
Our First Java Program
To start coding in Java we should know these definitions.
- All Java programs consist of classes.
- A ".java" file is definition of a single class.
- All class files are placed in special folder called package.
- There is a main class, which controls all instructions.
We will get:
Text "I love Java!" is printed as we wrote. This is the simplest code. To create games or other programs, we will need to use other classes, such as: design and algorithm. It is not easy to create one program. As Confucious said "A journey of a thousand miles begin with a single step". Therefore to make a good program we should start with a simple steps.
Finally, if you want to know more about Java programming you can visit tutorials online javabeginner.com and oracle.com. Both of them explain all you need in brief and exact form.
References:
1)www.java.com
2)Fundamentals of Programming, Nazarbayerv University.
3)www.netbeans.org