why java is platform independent?
can we call a method of a class in other class without creating its object and how?