Header Ads

Identifiers in java | Basic Concept of Java programming language | In Hindi

What are identifiers in a programing language?




In this blog we have dive into the fundamental concept of identifiers in programming languages. Whether you're a beginner or looking to refresh your knowledge, it provides a comprehensive overview of what identifiers are and how they function within a program.


What are Identifiers?

Identifiers are the smallest unit of a programming language, similar to alphabets in the English language.

They can be any combination of alphabets (a-z, A-Z), digits (0-9), or symbols and special characters(like #*/ or etc). Also Identifiers can be the names given to various programming elements such as variables, functions, arrays, and more.



They are crucial for making programs readable and manageable. Without identifiers, it would be challenging to distinguish between different data and functions in a program.


The Three Broad Divisions of Identifiers:

Identifiers are broadly divided into three categories namely- constants, variables, and keywords. Each of these plays a unique role in programming:

1.  Constants:
These are identifiers used to represent fixed values. Once defined, their values cannot be changed. 

Constants are further divided into two types:

i) Primary Constants: These include integer constants, real constants, and character constants.
  • Integer Constants: Represent whole numbers without a fractional part.
  • Real Constants: Represent numbers with a fractional part, also known as floating-point numbers.
  • Character Constants: Represent single characters enclosed in single quotes, such as 'A' , '3' or '+'.
ii) Secondary Constants: These include arrays and strings.
Arrays- Collections of elements of the same type stored in contiguous memory locations.
Strings- Arrays of characters.

(Note: in our future videos we will dive more into secondary constants)

2.  Variables:
Unlike constants, variables are identifiers whose values can change during the execution of a program. They act as storage locations in memory for data that can be modified.


3.  Keywords:
These are reserved words in a programming language that have a predefined meaning. Keywords cannot be used as identifiers or as any variable names.


Why are Identifiers Important?

Identifiers make code readable and maintainable. By using meaningful names, programmers can make their code more understandable, which is especially useful for large projects and for collaborating with others. Proper use of identifiers also helps in debugging and updating code efficiently.


Watch the Video
For a more detailed explanation and examples, we encourage you to watch our video on Identifiers in Programming Languages. Whether you're just starting out or looking to solidify your understanding, this video will provide valuable insights into the essential concept of identifiers.


By understanding and correctly using identifiers, you'll be well on your way to writing clear, efficient, and maintainable code. Happy coding!

Thanks,
Karan
Ping me for more details :
Linkedin :Let's connect on LinkedIn.
Click for more information: Click me
For more details Join our Whatsup Group : Whatup Group
To get daily job updates on software testing: To get Daily Job updates, click me
9050358180

No comments

Powered by Blogger.