Print Message

Question

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

Sample Output 1:

Welcome to object oriented programming.

Code :-

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

Leave a Comment

Scroll to Top