Computer Science, asked by priyesisah, 5 months ago

Write down the output of the following programs:
public static void main(String args[])
{
class try {
System.out.print("Welcome");
System.out.print("to");
System.out.print("my home");
}
}​

Answers

Answered by Deepanshi2613
1

Answer:

The output will be:

Welcome

to

my home

There is a suggestion to u if u want it in the same line so write it in one System.out.println statement only.

Explanation:

Mark me as the branliest

Answered by rushilk7
0

Answer:

Errors

Explanation:

This program would not return your desired result, but would in fact, throw an error.

System.out.print(); Does not exist. This is an incorrect statement.

The Correct method would be:

System.out.println();

there is "ln" after print. anyways, if this were to be correct, your output would be something like this:

__________________________________________________

Welcome

to

my home

__________________________________________________

Similar questions