Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is type-safety  RSS feed

 
R Shetty
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please explain type-safety
("jvm maintains type-safety")


Thank you
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wikipedia: Type safety
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool discussion there. The Strong Typing page may be a easier reading and more what you need to know about Java. One result is if you see a variable of some type, you can be confident that a non-null value really is of that type or a compatible subtype. Another is some of the tricky promotion of types that goes on with numbers.
 
R Shetty
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you both very much. The second one was definitely a much easier read but both were useful.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!