pass an object creat in the main of a class to another class
===

I have this class:

    public class Example
    {
        public void static main(String[] args)
        {
            Object obj = new Object();
            OtherClass oc = new OtherClass(obj);
        }
    }
    
    public class OtherClass
    {
        private Object object;
        public OtherClass(Object ob)
        {
        this.object = ob;
        }
    }

Now I would use OtherClass in another main. how can i do?
this is the class where I want to use OtherClass object created in the class Example before

    public class myownmain
    {
        public static void main(String[] args)
        {
            // Here I need OtherClass object created in Example class
        }
    }



