This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes final variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

final variables

Buddhi Vikasitha

Joined: Nov 01, 2012
Posts: 17

someone telll me the difference between these two codes..
93 compiles but 94 doesn't, i need to know why.

im an absolute beginner.. thankYou!!

Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

Hi, and welcome to the Ranch!

But you're a bit late. People have been posting this exact question here for the last week, and there's a lot of them which already have the answer. So just click on the "Search" link and search for 101, and you'll find a lot of other people interested in exactly that code. Maybe they are even in the same class as you.
Jeff Verdegan

Joined: Jan 03, 2004
Posts: 6109

Locking, since this exact question, with very complete answers, has appeared several times recently.
I agree. Here's the link:
subject: final variables
It's not a secret anymore!