Can we declare variables inside a method as Final Variables?

Answer Posted / therathna

write a small program and check ur system

we can use final variable method

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is string a datatype?

736


Which is a valid identifier?

754


what is synchronization and why is it important? : Java thread

826


What is the relationship between class and object?

755


Explain scope or life time of local variables in java?

771


What is data type in java?

691


What exactly is a .class file?

801


What is the use of put method?

720


What is difference between variable declaration and definition?

724


What do you mean by object?

720


What is the Concept of Encapsulation in OOPS

736


What are the 2 types of java programs?

780


Can you access the private method from outside the class?

719


What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?

858


Why java is considered dynamic?

931