This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

JavaNew

JavaNew[classname]
constructs a Java object of the specified class.
JavaNew[classname, args]
constructs a Java object of the specified class, passing the arguments args to its constructor
JavaNew[javaclass, args]
constructs a Java object of the specified JavaClass.
  • To use JavaNew, you first need to load J/Link using Needs["JLink`"].