Print Message in java

Question:

Write program to display a message “Welcome to object oriented programming”

Sample Output 1:

Welcome to object oriented programming

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

Leave a Comment

Scroll to Top