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

In ________ for final fields and methods the value is assignedlater but in ______ you assign the value during declaration.
Java , C++
C++ , C#
Java , C#
C++ ,Java

Respuesta :

ExieFansler ExieFansler
  • 24-07-2019

Answer:

The answer to this question is Java,C++.

Explanation:

We can assign non static final variables a value with the declaration or in the constructor but this is not the case with c++ because we have to assign value during declaration and c++ equivalent of final is const keyword and there is sealed or readonly keywords in c# not final.If we do not assign value at the time of declaration the const variable will contain garbage value which cannot be changed afterwards.

Answer Link

Otras preguntas

Give this topic sentence : Swimming is really the health exercise anyone can do. What other detailed sentence you can say about the topic sentence.
How is the horizontal component of velocity for a projectile affected by the vertical component?
find the volume of each sphere, both in terms of pi and to the nearest tenth. use 3.14 for pi
How many grams are in 11.9 moles of chromium?
what the british government wanted?
Do 1 gallon and 8 pints represents the same amount
How do you convert 2/30 into a percent ?
Anne has 24 more cards than Devi.  Anne finds that 3/5 of Devi's cards are equal to 1/2 of her cards.  How many cards does Anne have?
find the volume of each sphere, both in terms of pi and to the nearest tenth. use 3.14 for pi
How is the horizontal component of velocity for a projectile affected by the vertical component?