开发者

Dynamic keyword in Java

开发者 https://www.devze.com 2023-03-28 02:09 出处:网络
Is there a dynamic keywor开发者_如何学JAVAd in Java or a keyword which is similar to the dynamic keyword of C#No, there\'s no such thing in the Java Programming Language; it is a strictly statically t

Is there a dynamic keywor开发者_如何学JAVAd in Java or a keyword which is similar to the dynamic keyword of C#


No, there's no such thing in the Java Programming Language; it is a strictly statically typed language. There are, however, other programming languages that target the JVM, such as Groovy, that do indeed support dynamic typing.


No, not that I know of, but having said that, there are other languages supported by the JVM that do use dynamic typing, such as Jython and I believe Groovy, and so it is possible to have your cake and eat it too, just not the particular flavor of cake that you requested above.

0

精彩评论

暂无评论...
验证码 换一张
取 消