learn about simple program of java in depth