gucc430 gucc430
  • 19-07-2019
  • Computers and Technology
contestada

Which of the following statements Terminates the program andstops all threads?

a. Return(0);

b. Exit;

c. System.exit(1);

d. System.exit(0);

Respuesta :

aristeus aristeus
  • 30-07-2019

Answer:

(c) system.exist(1);

Explanation:

system.exist(1); is used for the termination of the program here both option c and d should be correct but in option d there is exit(0) and zero indicates return means program will return but besides zero if there is any non zero number then program will not return and in option c there is a non zero number which means program will not return so option c  system.exist(1); will be the correct option for the termination of program

Answer Link

Otras preguntas

The Declaration of Independence stated that a. the authority to govern belonged to the British. b. the authority to tax belonged to the British. c. the autho
Just need to find the slope for the pic below help ASAP!!?!
If 75% is 45 what is the full cost
Given 5tan2A = 2tanA + 6, find A to the nearest tenth of a degree when 180º≤A≤270º
How did bill russell differ from jackie robinson apex?
What are the Six Fundamental Elements in Living Organisms?
Which person is at the greatest risk of developing delirium?
The angle of elevation from point A to the top of a cliff is 38 degrees. If point A is 80 feet from the base of the cliff, how high is the cliff ?
the sum of two numbers is 12. their difference is 2. find the numbers
The Treaty of Nanjing established which three of the following policies? extraterritoriality rights for foreigners in China spheres of influence in China for Fr