Decode School

Decode School - The School for Problem Solvers
Welcome to My Blog.
Need Assignment / Project Guidance (or) Training in Python?

Java Program to Print Welcome

Program should simply display "Welcome".

Sample Output 1:

Welcome

Program or Solution

					    
							
class Welcome
{
     public static void main(String args[])
     {
          System.out.println("Welcome");
     }

}



					    
					

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".