Java is an object-oriented, compiled programming language developed by James Gosling for Sun in 1995 year and was initially targeted for home appliances.