Results 1 to 13 of 13
Why is java case sensitive?
This is a discussion on Why is java case sensitive? within the Programming forums, part of the Web Designing & Development category; Java is platform independent language. It is widely used for developing code which contains different variables and hence java is ...
- 05-25-2017, 10:20 AM #1
Why is java case sensitive?
Java is platform independent language. It is widely used for developing code which contains different variables and hence java is case sensitive
- 05-29-2017, 11:53 AM #2
- Join Date
- Mar 2017
- Posts
- 24
Re: Why is java case sensitive?
Java is a platform independent.It can be used in any machines irrespective of platform.so it is a case sensitive.
- 06-08-2017, 01:25 PM #3
- Join Date
- Nov 2016
- Posts
- 152
Re: Why is java case sensitive?
Actually the case sensitivity gives more flexibility. With case sensitivity you can define the same variable but of different case in main and sub programmes for easy understanding.
- 06-09-2017, 11:09 AM #4
- Join Date
- Jun 2017
- Location
- New York
- Posts
- 72
Re: Why is java case sensitive?
Java is platform independent thus used on different platforms, for the security purpose the language is case sensitive.
It is inherited from C language. In Java there are different variables, keywords and functions used.
- 06-15-2017, 11:40 AM #5
- Join Date
- Dec 2016
- Posts
- 142
Re: Why is java case sensitive?
Yes, it is case-sensitive. It is this way because of its heritage from C. To keep the language more familiar to what people were used to "in the day", they left it as case-sensitive. There is an added advantage, since Java identifiers can be almost any Unicode character
Better to ask the opposite question: why have case insensitivity? It turns out that case insensitivity is more complex than you might imagine -- in plain old english 7-bit ASCII-land it's easy to define and everyone agrees on what it means. However we live in a world of UTF-8/UNICODE and hundreds of languages many of which don't use latin characters. In that context 'case insensitivity' loses much of its meaning, and certainly becomes harder to define clearly. So, since case insensitivity is something of a pain to pin down, the natural tendency to make things simple and easy means you don't want to have it unless there's some very good reason to do so. No such very good reason exists today for programming language identifiers. In the distant past there was a good reason, which was that there were machines and operating systems that did not have lower case, and there was a concern that case sensitivity might lead to interoperability issues with those machines.
- 08-05-2017, 10:14 AM #6
Re: Why is java case sensitive?
Yes, it is case-sensitive. It is this way because of its heritage from C. To keep the language more familiar to what people were used to "in the day", they left it as case-sensitive. There is an added advantage since Java identifiers can be almost any Unicode character.
- 08-07-2017, 05:32 AM #7
- Join Date
- May 2017
- Posts
- 477
Re: Why is java case sensitive?
Case sensitivity is the norm in most programming languages and environments, because lower and upper case letters are represented differently at the lowest levels.
- 08-08-2017, 12:07 PM #8
- Join Date
- Nov 2016
- Posts
- 152
Re: Why is java case sensitive?
- 11-24-2017, 06:14 AM #9
- Join Date
- Jul 2017
- Posts
- 63
Re: Why is java case sensitive?
A case-sensitive program that expects you to enter all commands in uppercase will not respond correctly if you enter one or more characters in lowercase. It will treat the command RUN differently from run. Programs that do not distinguish between uppercase and lowercase are said to be case-insensitive.
- 03-20-2018, 06:34 AM #10
- Join Date
- Mar 2018
- Location
- Santa Clara, California, USA
- Posts
- 40
Re: Why is java case sensitive?
Yes, Java is case sensitive. This might seem a little frustrating, especially when you realize why your program isn't running right. The variable you sent (TreeCount) is really named treeCount! There is a reason for this, and it's really at the level of bits and bytes. To a computer, t is not T. This can frustrate a human, but the computer doesn't care. They are completely different values in memory.
- 03-21-2018, 06:25 AM #11
- Join Date
- Sep 2017
- Location
- DELHI, INDIA
- Posts
- 391
Re: Why is java case sensitive?
One of the reasons for Java is case sensitive that is Security.
- 08-01-2020, 05:09 AM #12
- Join Date
- Jul 2020
- Location
- CA
- Posts
- 14
Re: Why is java case sensitive?
Yes, Java language is case sensitive, that's the main disadvantage.
- 10-07-2020, 10:20 AM #13
- Join Date
- Oct 2020
- Posts
- 1
Re: Why is java case sensitive?
Java, as most programming dialects, is case touchy. Indeed, even the smallest contrast in naming demonstrates various articles (tally doesn't rise to Count). So as to be predictable, developers follow naming shows.