Write a Java Program to Print Your Name

January 22, 2023 0 Comments

In this tutorial learn how you can print your name in Java. We are using a statement System.out.println(); to print our name.

Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible.

Write a Program to Print Your Name in Java

Here is the code to display your name in Java programming.

//Write a program to print your name in Java
public class Name {
    public static void main ( String[] args){
System.out.println("My name is Saroj Baniya.");
    } 
}

Test Live At Jdoodle

Conclusion

This is how you can display your name in java programming. Comment below if you like our tutorial.

Leave a comment

Gallery