154k views
9 votes
Write a program in Java programming language to display or calculate “Hello, Daddy and Mum”

2 Answers

7 votes

Answer:

class Simple{

public static void main(String args[]){

System.out.println("Hello Daddy and Mum);

}

}

Step-by-step explanation:

First, we create a class, then a method and then give the Integrated Data Environment (IDE) the command to give out an output that says Hello, Daddy and Mum”

User Luksch
by
5.2k points
9 votes

Answer:

public class Program

{

public static void main(String[] args) {

System.out.println("Hello, Daddy and Mum");

}

}

Step-by-step explanation:

Java is a high level, modern programming language designed in the early 1990s by Sun Microsystems.

The above one is simple program that displays “Hello, Daddy and Mum” on the screen.

In Java, every application begins with a class definition. Here we have named class Program.

The main() method is the entry of the program. A valid Java program must have main() method.

The code prints the text “Hello, Daddy and Mum” using System.out.println() function.

User Ivacf
by
4.6k points