public class Test { public: Test(){} void Print() { System.out.println("Test."); } } //像这种c++形式的定义,在java里适用吗
不可以,其不符合语法要求 会报错。