THE JAVA TECHNOLOGY
THE JAVA TECHNOOGY:
The Java technology consists of java as a programming language and as a platform.
1. The java programming language:
An earlier blog has dwelt on java as a programming language. We can also add that java is secure, robust and distributed, but that’s how it should be for a network based technology.
You can use any text editor to write java code and save it with a .java extension. I use the eclipse IDE [1] for coding and compiling.
You have to compile your .java file, into a byte coded file, .class, so that your programs can be run on any computer which has the java virtual machine (JVM) installed.
For example you have written a simple java program, HelloLagos.
Class HelloLagos {
Public static void main(String[] args){
System.out.println(“Hello
}
}
The example above is taken from the all-too-familiar HelloWorld intro to java programming and it prints out: “Hello Lagos!”
Your text editor saves the code as HelloLagos.java and on successful compiling, it becomes HelloLagos.class, byte coded. This class files can be run on any computer with the Java Virtual Machine installed.
[1]. Am forbidden to recommend any to you, but eclipse is damn good and Netbeans comes bundled with the sun sdk, so any of the two can be used. www.eclipse.org or www.sun.com.
No comments:
Post a Comment