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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which container method is used to cause a container to be laid out and redisplayed in java programming?

1088


What is internal iteration in java se 8?

1177


What is the map interface in java programming?

1001


Can we override the static methods?

1016


What is a programming object?

1077


What is difference between core java and java ee?

879


Explain the difference between intermediate and terminal operations in java8?

1084


How do you include a string in java?

955


Can we override tostring method in java?

956


Explain listiterator and methods in listiterator?

997


What is a pointer and does java support pointers?

984


What is the difference between path and classpath variables?

1029


What are kinds of processors?

973


what is instanceof operator used in java?

1019


What is called module?

959