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 214 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
Excellent


mcarey591

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

 

Did you know?

Acute bronchitis is an inflammation of the breathing tubes (bronchi), which causes increased mucus production and other changes. It is usually caused by bacteria or viruses, can be serious in people who have pulmonary or cardiac diseases, and can lead to pneumonia.

Did you know?

Pubic lice (crabs) are usually spread through sexual contact. You cannot catch them by using a public toilet.

Did you know?

To maintain good kidney function, you should drink at least 3 quarts of water daily. Water dilutes urine and helps prevent concentrations of salts and minerals that can lead to kidney stone formation. Chronic dehydration is a major contributor to the development of kidney stones.

Did you know?

Giardia is one of the most common intestinal parasites worldwide, and infects up to 20% of the world population, mostly in poorer countries with inadequate sanitation. Infections are most common in children, though chronic Giardia is more common in adults.

Did you know?

A headache when you wake up in the morning is indicative of sinusitis. Other symptoms of sinusitis can include fever, weakness, tiredness, a cough that may be more severe at night, and a runny nose or nasal congestion.

For a complete list of videos, visit our video library