开发者

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

开发者 https://www.devze.com 2023-02-21 21:46 出处:网络
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 s

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

精彩评论

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