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...

What is the output of the following Java program?
class Main {
public static void main(String args[]){
final int i;
i = 10;
System.out.println(i);
}
}

10. What is the output of the following Java program?
class Main {
public static void main(String args[]){
final int i;
i = 10;
System.out.println(i);
}
}

Answer Posted / hrindows@gmail.com

Output
10
Since i is the blank final variable. It can be initialized only once. We have initialized it to Therefore, 10 will be printed.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is Object Oriented Programming different from Procedure Oriented Programming?

1001


What is difference between this and super keyword?

945


Is 0 an even number?

939


What is ascii code?

1171


Can we access the non-final local variable, inside the local inner class?

979


What is difference between path and classpath?

1093


What is a boolean output?

926


What are the advantages of inner classes?

965


what is comparable and comparator interface?

946


Describe the process as to how substring() methodology mechanisms in java.

1065


What is default size of arraylist in java?

1083


Is passing by reference faster?

951


What is null mean in java?

1043


How to create an interface?

1025


How does java pattern compile work?

923