Introduction

What is case sensitivity: Case sensitivity is the mechanism in which words can be differ in meaning based on different use of uppercase and lowercase letters.

Introduction

What is case sensitivity: Case sensitivity is the mechanism in which words can be differ in meaning based on different use of uppercase and lowercase letters.

Introduction

Introduction

     

  • What is case sensitivity 
  • Case sensitivity in Computers 
  • Case Sensitive and case insensitive Languages
  • Examples  

What is case sensitivity:  Case sensitivity is the mechanism in which words can be differ in meaning based on different use of uppercase and lowercase letters. Sometime words can differ in meaning with the same words while starts with capital letter  with lowercase letters.

Case sensitivity in Computers:  Case sensitivity is the mechanism by which computer compares two words to decide whether they are equal, it may or may not consider words equal which only differ in case.

Case Sensitive and case insensitive Languages:   On the basis of case sensitivity, computer languages can be divided into two parts. Computer languages  like C, C++  and java are case sensitive languages while others are case insensitive like BASIC and Pascal. 

Examples:

§   The Java class Helloworld is a completely different class from the class HelloWorld.

§   public static void main(String args[]) is totally different from public static void main(string args[]).

§   If you compare two strings in a case sensitive way then they are considered different if they differ only in capitalization e.g. comparing the string by using the method String.compareTo,   If you compare two Strings in a case insensitive way then they are considered equal if they differ only in capitalization. e.g. comparing the string with String.compareToIgnoreCase,