As explained earlier, Java™ is a programing language used for developing softwares (desktop softwares, mobile softwares). Java is platform-independent , that is, you can run a single java program on different platforms or devices.
BASIC SYNTAX OF JAVA PROGRAMS
A Java program in order to run, must have the following:
» A Class
» A main method (also called "method main").
A simple java program looks like this:
public class firstApp {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
The above program, after run on either your Android Integrated Development Environment (AIDE) Application, or IDE on your PC, or console (Command Prompt) will print “Hello World!” . :-)
Now that is how a simple Java program look like. You'll understand better in later discussions. Feel free to ask questions!
» Twitter — Follow me on Twitter @iamwebwiz
» WhatsApp/Call/SMS — 08132690608
» Facebook — Oladejo Ezekiel
No comments:
Post a Comment
Your response mean a lot to us. Drop one.