[Solved] How to call a behavioral method from main method in java?
You have to instanciate current class, use this code: public static void main(String[] args) { A a = new A(); int value = a.abc(); } 2 solved How to call a behavioral method from main method in java?