What is the difference between these two functions in luajava:
-- I know this creates a new instance of a class
local instance = luajava.newInstance("path.to.class");
-- But it seems this does as well?
local class = luajava.bindClass("path.to.class");
Strangely enough I couldn't find any definitive answers to this. Most websites that use these functions do not bother describing the difference, and I seem to be able to call the same methods from both instance
and class
.