sadeem50 sadeem50
  • 10-11-2020
  • Computers and Technology
contestada

What is the output of the below Java program?
int a=1:
while (a=4)
{
System.out.print(a + "");
a ++:
}
What is the output of the following java program

Respuesta :

skowronkow skowronkow
  • 10-11-2020

Answer:

If you fix your program: instead of "while (a=4)" you will have: while(a<4)

It wil print:

> 123

Explanation:

You can check the output of that kind of programs in online repl consoles e.g: https://repl.it/languages/java10

Answer Link

Otras preguntas

True or False. Notaries may not use electronic technology to notarize wills, codicils, and testamentary trusts. OA) TRUE OB) FALSE
A bag contains 10 balls, each a different color. A ball is removed from the bag and then replaced. This is done 5 times. What is the probability that no ball of
notification ki.maa ka bhosda​
The U.S. Constitution gives each branch of the federal government the ability to limit and restrict some actions of the other branches. This is an example of wh
I just got ghosted by my very special friend. We actually became friends 3 days ago. I miss him. What should I do?​
There are 2 pitchers of iced tea. The iced tea in the 1st one was made with 4 tea bags and 1.25 quarts of water. The iced tea in the second pitcher was made wit
just need help with the screenshot
What observations did Galileo make with his telescope? Select all that apply. star clusters in the Milky Way comets in the Kuiper belt craters on the Moon moons
One of the best ways to put language learning to practice is to spend time in the countries where the language is spoken. You could join a travel program, parti
what are herbivorous plants?