Any beginner programmer will first code is "Hello world!"
lest type it in notepad or any text editor,
class main{
public static void main(String args [ ]){
System.out.println("Hello World!");
}
}
- class main-This line declares a class called main all javacode must be inside the java class
- public static void main(String args [])- this is a main method any java program have one main method inside the main method codes only last execute .
No comments:
Post a Comment