What is Java?
Java is a programming language, which is a way of writing instructions for a computer to follow. It’s been around since the 1990s and is still one of the most popular languages at big tech companies.
A lot of Java code is backend code that runs on a server and handles things like logins, payments and saving data. It was the main language for building Android apps for many years. It’s also behind a lot of enterprise software, which is the kind of internal tool big businesses use for things like payroll and inventory.
Java was built around the idea of “write once, run anywhere.” Code written for Windows usually has to be changed before it can run on a Mac or Linux. Java gets around this by turning your code into a format that the Java Virtual Machine, or JVM, knows how to run. There’s a JVM for every major operating system, so the same Java code runs on any computer that has one installed.
Sun Microsystems released Java in 1995. JavaScript came out the same year and is a completely different language despite the name. Netscape, the company behind one of the first popular web browsers, named it JavaScript to ride Java’s popularity at the time. Oracle bought Sun in 2010 and has owned Java ever since.
Java was an up-and-coming language when I first started coding and it quickly overtook C++ as the go-to language. I used it in my AP Computer Science class in high school, in college and at my first two jobs as a developer. Many programming books from the 2000s and 2010s use Java for their examples.