2017  Kodetalk | Feedback | Privacy Policy | Terms | About

Is java case sensitive ?

which means identifier Hello and hello would have different meaning in Java.?

Explain ?


Yes, Java is case sensitive programming language. For Example You Can Write a Two Variable With the Same name and one of the Variable start with Capital Letter, Java will Consider the Two Names as Different Variables.

Example for case sensitivity:--
class Casesensitive{
public static void main(String args[]){
String hello="This variable Start With Simple Letter";
String Hello="Same name as First Variable, But Start With Capital letter";

As for the Above Example variable hello Which starts with simple “h” Different from the Variable which start with a Capital “H”. Even Though Both have the Same Name.

Answer is