StackOverflow Questions for Tag: final

Gerard
Gerard

Reputation: 2904

Lambdas: local variables need final, instance variables don't

Score: 81

Views: 91155

Answers: 10

Read More
Elye
Elye

Reputation: 60251

Kotlin, set var/val once to make it final, is that possible

Score: 11

Views: 3539

Answers: 6

Read More
MilesHampson
MilesHampson

Reputation: 2079

javac treating static final differently based on assignment method

Score: 5

Views: 268

Answers: 4

Read More
Swaram Jagtap
Swaram Jagtap

Reputation: 572

What is the difference between constant variables and final variables in java?

Score: 34

Views: 70403

Answers: 4

Read More
user2609605
user2609605

Reputation: 628

java final field may already be assigned: compiler bug?

Score: 3

Views: 113

Answers: 2

Read More
Ferenc Deak
Ferenc Deak

Reputation: 35448

Final enum classes in C++11

Score: 8

Views: 1094

Answers: 1

Read More
Lívia Carolina
Lívia Carolina

Reputation: 1

Different behavior when using const before a const constructor in Dart

Score: 0

Views: 62

Answers: 2

Read More
user2577756
user2577756

Reputation: 79

If i need to initialize a static final Collection

Score: -1

Views: 4993

Answers: 5

Read More
St.Antario
St.Antario

Reputation: 27435

Is field's default value guaranteed to be visible among threads?

Score: 1

Views: 312

Answers: 2

Read More
ravi saurav
ravi saurav

Reputation: 59

Initializing a final variable in java by calling a method

Score: 2

Views: 4117

Answers: 5

Read More
Thejas
Thejas

Reputation: 489

Unable to mock final field using mockito-inline dependency

Score: 0

Views: 78

Answers: 0

Read More
fixitagain
fixitagain

Reputation: 6733

Change private static final field using Java reflection

Score: 583

Views: 394782

Answers: 17

Read More
eaolson
eaolson

Reputation: 15094

When should one use final for method parameters and local variables?

Score: 205

Views: 80236

Answers: 15

Read More
Kip
Kip

Reputation: 109453

Is there any performance reason to declare method parameters final in Java?

Score: 122

Views: 29830

Answers: 4

Read More
Teakwood J Overclutch
Teakwood J Overclutch

Reputation: 171

Is it possible to declare a method as final in a class in Dart?

Score: 13

Views: 3893

Answers: 2

Read More
Luke Siegel
Luke Siegel

Reputation: 23

Is there a good way to make runtime constants within methods in C#?

Score: 1

Views: 208

Answers: 1

Read More
Anil
Anil

Reputation: 39

How to prevent override methods from being converted into final in R8?

Score: 2

Views: 78

Answers: 1

Read More
storm_buster
storm_buster

Reputation: 7568

when exactly are we supposed to use "public static final String"?

Score: 65

Views: 217140

Answers: 14

Read More
Gegham Chinaryan
Gegham Chinaryan

Reputation: 1

How to implement `final` semantics pre C++11?

Score: 0

Views: 162

Answers: 2

Read More
Pravin yadav
Pravin yadav

Reputation: 707

Assigning final keyword using a method

Score: 0

Views: 122

Answers: 3

Read More
PreviousPage 2Next