how to call a function in java without any object code example Example: call method without creating object java ((BaseActivity) activity).getlanuage()