Decode School

Java Program to Print Welcome

Program should simply display "Welcome".

Sample Output 1:


Program or Solution

class Welcome
     public static void main(String args[])



Program Explanation

System.out.println is a function available(pre defined) in java library which is used to print the specified content in the monitor Here it prints the String literal "Welcome".