开发者

JRuby - include Java vs require "java" - what's the difference?

wh开发者_运维技巧at's the difference between include Java and require "java"?


require 'java' is called to make all the Java integration facilities available to the script. The require keyword is somewhat similar to the import keyword in Java; it is a signal to load resources from a file whose name follows the keyword

include Java : We include Java API to JRuby.

go through this link

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜