Java was invented by Sun Microsystems in 1995 under the leadership of James Gosling. The language was originally called 'Oak' and was developed for consumer electronics, later repurposed for web applications. Sun was acquired by Oracle in 2010, which now maintains Java.