0

What is Type Safety? How does Type Safety affect us? Why is Type Safety Important? Writing Type-Safe Code. in what scenario we can achieve type safety?

Red Swan
  • 15,157
  • 43
  • 156
  • 238

1 Answers1

0

Type safety is checking for matched data types during compile time. For example int a ="John" returns error as variable 'a' is an integer and we are assigning a string value. These data type mismatches are checked during compile time.

user2965957
  • 17
  • 10