hello friends! new(ish)!

Java (programming language): Difference between revisions

From InstallGentoo Wiki v2
Jump to navigation Jump to search
>Kibukj
No edit summary
>Mrsnooze
m (categorY:programming languages)
Line 28: Line 28:
[[Category:Programming]]
[[Category:Programming]]
[[Category:Software]]
[[Category:Software]]
[[Category:Programming languages]]

Revision as of 15:29, 24 February 2016

Not to be confused with JavaScript.

Java is a class-based, object-oriented programming language that was specifically designed to avoid implementation dependencies.

Java Runtime Environment

The Java Runtime Environment or JRE should not be confused with the Java programming language itself.

The JRE is a software package that is required to run applications written in the Java programming language. It includes the Java Virtual Machine or JVM, the Java platform core classes, supporting Java platform libraries, and various Java plug-ins for popular web browsers. The JVM is responsible for the versatility of Java applications in terms of platform support. Unfortunately, it is also responsible for their relatively poor performance and high memory requirements. While the situation has certainly improved in recent years thanks to the Just-In-Time Compiler or JIT, Java applications still tend to be somewhat slower and heavier than their non-Java counterparts. Notably, some applications like Libre Office require Java for certain features, but can be used without the JRE if the user is willing to sacrifice access to those features.

Security Issues

The vast majority of the JRE's security issues stem from the various Java plug-ins for Web browsers. These plug-ins have no role whatsoever in running most Java applications, and they are only rarely required to display modern Web content. Due to the significant number of security vulnerabilities caused by these plug-ins in the past several years, major browser vendors like Mozilla and Google have taken steps to see that they are unable to execute without directly prompting the user.

Examples

Hello World

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}