Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialOmar Tsai
1,704 PointsWhy does putting a upper case make the app crash?
Why does making the "name" upper case as "Name" make the app crash?
2 Answers
Dylan Merritt
15,682 PointsIt will depend on the exact circumstance, but Java is a case-sensitive language so if you use a lowercase where an uppercase is required, or vice versa, then it can result in a crash. Also, if you have name as a member variable and change it to Name, but forget to update the other usages of it, then it can cause problems.
Aurelian Spodarec
7,369 PointsAs i heared Java is case sensitive lets break it like this
var name is different than var Name
Why? well, the first is all in lover case. The second had up case first letter.
Hope this helps!