Can we declare variables inside a method as Final Variables?

Answer Posted / ravikiran(aptech mumbai)

yes we can declare.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?

623


Where are register variables stored?

593


what is synchronization? : Java thread

563


How do you insert a line break?

499


Which class contains a method: cloneable or object?

542






What is a conditional statement explain with example?

543


How to sort list of list in java?

664


What is the use of a copy constructor?

573


What is a Transient Object?

641


Can a method be overloaded based on different return type but same argument type?

548


How to read and write image from a file ?

561


Give a practical example of singleton class usage?

593


Which types of exceptions are caught at compile time?

567


What do you mean by order of precedence and associativity?

550


Explain public static void main(string args[]).

569