use method without cerating object code example
Example 1: call method of another class without creating instance in java android
((BaseActivity) activity).showCart();
//class name context method name
Example 2: call method without creating object java
((BaseActivity) activity).getlanuage()