e Learning

Is java case sensitive language ?

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.

class JavaCasesensitive{
public static void main(String args[]){
String isjava="This variable Start With Simple Letter";
String Isjava="Same name as First Variable, But Start With Capital letter";
System.out.println(isjava);
System.out.println(Isjava);
}
}

As for the Above Example variable isjava Which starts with simple ā€œiā€ Different from the Variable which start with a Capital ā€œIā€. Even Though Both have the Same Name compiler will treat them as two different variables, because Java is a case sensitive language.