java run main of another class

Solutions on MaxInterview for java run main of another class by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
showing results for - "java run main of another class"
Carla
25 May 2018
1public class CallClass{
2
3    public void call(){
4       ToBeCalledClass.main(null); //or whatever args you want
5    }
6}