Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can we declare variables inside a method as Final Variables?

Answers were Sorted based on User's Feedback



Can we declare variables inside a method as Final Variables?..

Answer / therathna

write a small program and check ur system

we can use final variable method

Is This Answer Correct ?    15 Yes 2 No

Can we declare variables inside a method as Final Variables?..

Answer / srinu

yes we can declare a varible as final variable inside method
public class Finalv
{
public void m1()
{
final int a=10;
System.out.println(a);
}
public static void main(String k[])
{
Finalv f=new Finalv();
f.m1();
}
}

Is This Answer Correct ?    13 Yes 0 No

Can we declare variables inside a method as Final Variables?..

Answer / ravikiran(aptech mumbai)

yes we can declare.

Is This Answer Correct ?    12 Yes 1 No

Post New Answer

More Core Java Interview Questions

Can we force garbage collector to run ?

0 Answers   B-Ways TecnoSoft,


Which collection is ordered in java?

0 Answers  


What is the exact difference in between Unicast and Multicast object ?

4 Answers   Accenture,


Can we clone singleton object?

0 Answers  


Difference between overloading and overridding?

4 Answers  


what is the difference between process and thread? : Java thread

0 Answers  


What is javac_g?

0 Answers  


what is the difference between equals method and ==

17 Answers   IBM, Professional Access, TCS,


Is string a data type in java?

0 Answers  


What do you understand by access specifiers in Java?

0 Answers   Genpact,


What is the difference between equals() and == in java?

0 Answers  


Can we declare static variables in JSP page.

3 Answers   TCS,


Categories