we gonna provide the program and illustrate it.
Every program in java needs a " main method " to work as the java compiler searches for that method to start executing.
If you become part of a development team in industry, you might work on applications that contain hundreds, or even thousands, of classes.
first you going need to install the JDK then
You can use Eclipse IDE which I recommend or any other IDE.
Obviously we won't be starting from scratch. There's always a introduction about computer languages and how the system works and how the java program works. You obviously can find these stuff in any java book. i would recommend you to download that book " java how to program".
Now, let's start!
You obviously going need a class to start a program. while you are writing a program, u gotta be careful that "java" is a case sensitive letters.
let's provide a small program and start illustrating it.
That's the first program to start with:-
public class Fun { // opening a starting class
public static void main(String[] args){ // the main method
System.out.println("welcome to java world "); // printing a msg
} // close method
} // close class
thank you.
tomorrow we are going to talk about methods in java!
No comments:
Post a Comment