Win a copy of The Java Performance Companion this week in the Performance forum!
    Bookmark Topic Watch Topic
  • New Topic

final variables

 
Buddhi Vikasitha
Greenhorn
Posts: 17
Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Sheriff
Posts: 21137
32
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
Locking, since this exact question, with very complete answers, has appeared several times recently.
 
    Bookmark Topic Watch Topic
  • New Topic