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

a pool charges $4each visit or you can buy a membership. write and solve an inequality to find out many times a person should use the pool so that a membership
Which words make up the adverb phrase in this sentence? Before the weekend, we must finish our project. A. Before the weekend B. our project C. we must D. must
3.0035 into a fraction
26,30,45,43,26,14,28,33,56,29,what is the mean of the data set
what is 43.043 in expanded form
Why did people leave land to the church when they died
Simplify this expression 3x/21(x+y)
the quotient of x and 3 is less than or equal to 5?
What is the primary purpose of most constitutions? to define a moral code for people to follow to provide a substitute for government to prevent a strong centra
is 7/20 and 0.07 equivalent numbers