If you want to make money online : Register now

[Solved]: Can Java be accurately described as statically and dynamically typed?

, , No Comments
Problem Detail: 

Java seems to be categorized as a statically-typed language [1], but I'm wondering if it would be accurate to describe it as generally statically-typed but having some dynamic typing because of the run-time type checks performed when downcasts are performed.

Asked By : espertus

Answered By : D.W.

Yes, that would be accurate. Also, array writes involve a runtime type check, to deal with problems associated with covariant array types.

Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/23521

3.2K people like this

 Download Related Notes/Documents

0 comments:

Post a Comment

Let us know your responses and feedback