unit 1 Java programming
Example;-WAP to print a message “Welcome to Java World”.
1 2 3 4 5 6 7 |
class Example { public static void main (String args[]) { System.out.println ("Welcome to Java World"); } } |
Output: Welcome to Java World Explanation of above program public static void main(String args[]) All Java applications begin execution from main ( ) function. (This is just like C/C++.) The public keyword is an access specifier, which allows the programmer to control the visibility of […]
Continue Reading