This topic contains a solution. Click here to go to the answer

Author Question: What happens if you attempt to use a variable before it has been initialized? (Read 204 times)

Themember4

  • Hero Member
  • *****
  • Posts: 538

Question 1

The String class' compareTo method
◦ compares two string in a case-independent manner
◦ yields true or false
◦ yields 0 if the two strings are identical
◦ returns 1 if the first string comes lexically before the second string
◦ none of these

Question 2

What happens if you attempt to use a variable before it has been initialized?
◦ A syntax error may be generated by the compiler
◦ A runtime error may occur during execution
◦ A "garbage" or "uninitialized" value will be used in the computation
◦ A value of zero is used if a variable has not been initialized
◦ Answers A syntax error may be generated by the compiler and A runtime error may occur during execution  are correct


Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by Themember4 on Aug 30, 2020

katheyjon

  • Sr. Member
  • ****
  • Posts: 331
Lorsum iprem. Lorsus sur ipci. Lorsem sur iprem. Lorsum sur ipdi, lorsem sur ipci. Lorsum sur iprium, valum sur ipci et, vala sur ipci. Lorsem sur ipci, lorsa sur iprem. Valus sur ipdi. Lorsus sur iprium nunc, valem sur iprium. Valem sur ipdi. Lorsa sur iprium. Lorsum sur iprium. Valem sur ipdi. Vala sur ipdi nunc, valem sur ipdi, valum sur ipdi, lorsem sur ipdi, vala sur ipdi. Valem sur iprem nunc, lorsa sur iprium. Valum sur ipdi et, lorsus sur ipci. Valem sur iprem. Valem sur ipci. Lorsa sur iprium. Lorsem sur ipci, valus sur iprem. Lorsem sur iprem nunc, valus sur iprium.
Answer Preview
Only 39% of students answer this correctly




Themember4

  • Member
  • Posts: 538
Reply 2 on: Aug 30, 2020
YES! Correct, THANKS for helping me on my review


pangili4

  • Member
  • Posts: 346
Reply 3 on: Yesterday
Wow, this really help

 

Did you know?

For pediatric patients, intravenous fluids are the most commonly cited products involved in medication errors that are reported to the USP.

Did you know?

Barbituric acid, the base material of barbiturates, was first synthesized in 1863 by Adolph von Bayer. His company later went on to synthesize aspirin for the first time, and Bayer aspirin is still a popular brand today.

Did you know?

The average adult has about 21 square feet of skin.

Did you know?

Hypertension is a silent killer because it is deadly and has no significant early symptoms. The danger from hypertension is the extra load on the heart, which can lead to hypertensive heart disease and kidney damage. This occurs without any major symptoms until the high blood pressure becomes extreme. Regular blood pressure checks are an important method of catching hypertension before it can kill you.

Did you know?

The top five reasons that children stay home from school are as follows: colds, stomach flu (gastroenteritis), ear infection (otitis media), pink eye (conjunctivitis), and sore throat.

For a complete list of videos, visit our video library