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

what is the total weight of the italian Sandwhich?write the amount as a fraction in simplest form,meat:0.35,vegie:0.15,sauce:0.05,bread:0.05
The Vietnam War fi nally ended when (A) South Vietnam defeated the Viet Cong (B) the United States led a successful invasion of Cambodia (C) the United States w
Which one of the following is not the name of a major American regional dialect? Western General American New England Southern
Which of the following Civil War battles occurred fi rst? (A) Battle of Shiloh (B) Battle of Fredericksburg (C) Battle of Chancellorsville (D) First Battle of B
What factors go into 24
How does a doctor commonly put the vaccine into your body?
how is Emmet till's murder presented in the American history
In what country are the 2 tallest mountains in the world found?
Which was Ventor’s contribution to science?
what is the capitol of ukrane