Print Message in java

In this post, we will learn Print Message in java Programming language.

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");
    }
}

Conclusion

I hope after going through this post, you understand Print Message in java Programming language.

If you have any doubts regarding the program, then contact us in the comment section. We will be delighted to assist you.

Sharing Is Caring

Leave a Comment