Type Checking

April 4, 2019 · Team EasyExamNotes · 1 min read (est.) · 0 comments

Share on WhatsApp
TYPE CHECKING
 
Type checking is a program analysis that verifies something about the types that are used in the program.
Type checking could happen at compile-time or at run-time.
There is two types of type checking:

 

  1. Static type checking
  2. Dynamic type checking
1) Static type checking: When variable data type is defined.
For example, in Java
int age = 20;
 
It is performed at compile time.
 
2) Dynamic type checking: When variable data type is not defined.
For example, in Python
age = 20;
 
It is performed at run time.
 
Video lecture on Type Checking

References:

  1. Sebesta,”Concept of programming Language”, Pearson Edu
  2. Louden, “Programming Languages: Principles & Practices” , Cengage Learning
  3. Tucker, “Programming Languages: Principles and paradigms “, Tata McGraw –Hill.
  4. E Horowitz, “Programming Languages”, 2nd Edition, Addison Wesley

Discussion

Ask a question, share your thoughts or report an error.

Sign in to participate in the discussion.

Join the discussion