Can we declare variables inside a method as Final Variables?
Answers were Sorted based on User's Feedback
Answer / therathna
write a small program and check ur system
we can use final variable method
|Is This Answer Correct ?||15 Yes||1 No|
Answer / srinu
yes we can declare a varible as final variable inside method
public class Finalv
public void m1()
final int a=10;
public static void main(String k)
Finalv f=new Finalv();
|Is This Answer Correct ?||12 Yes||0 No|
Answer / ravikiran(aptech mumbai)
yes we can declare.
|Is This Answer Correct ?||12 Yes||1 No|
How many ways can we create singleton class?
what is use of threads how many ways to create thread
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
how to print the below in java? * * * * * * * * *
What is purpose of applet programming?
what is method reference in java 8?
What is file class and what is its purpose?
What is CardLayout?
Can we instantiate Interfaces?
What is difference between pointer and reference?
What is main difference between variable and constant?