Py4JenablesPythonprogramstodynamicallyaccessarbitraryJavaobjects.MethodsarecalledasiftheJavaobjectsresidedinthePythonvirtualmachine.Thereisnocodetogenerateandnointerfacetoimplementforsharedobjectsonbothsides.