1public class MyFirstJavaProgram {
2
3 /* This is my first java program.
4 * This will print 'Hello World' as the output
5 */
6
7 public static void main(String []args) {
8 System.out.println("Hello World"); // prints Hello World
9 }
10}
1= Output: 10
2+= Output: 20
3-= Output: 10
4*= Output: 200
5/= Output: 10
6%= Output: 0