3 ms·
Why is Java a dynamic language? Isn't Java statically typed?
by chinhodado 11y ago
Why is Java a dynamic language? Isn't Java statically typed?
- supster 11y agoStatic vs dynamic is actually kind of a blurry line: https://en.wikipedia.org/wiki/Strong_and_weak_typing https://en.wikipedia.org/wiki/Strong_and_weak_typing
- alfanick 11y agoyou can do metaprogramming - invent new methods or class on the run
- ludamad 11y agoDynamically typed languages essentially have something like Java's Object type as the type of everything. Using wide types like that and interfaces in Java, you easily have dynamic traits in your code.
- mike_hearn 11y agoThe dynamic its of Java are not its type system, they're things like late dynamic linking.