WHAT IS JAVA?
Java is a general purpose programming language designed with one mantra in mind—”write once, run anywhere.”
Java applications are compiled into bytecode that can run on implementations of the Java Virtual Machine (JVM).
JVM helps bridge the gap between source code and the 1s and 0s that the computer understands. Any machine that has the JVM installed can run Java.
In web development, Java features most prominently as a server-side language and the programming language of choice for mobile apps on the Android platform.
It also still has a decent presence on the front-end as a Java applet, although this is falling out of favor due to security concerns.
Object-Oriented Programming (OOP). Both languages require the developer to code in terms of objects and their relationships to one another. By extension this gives both languages access to techniques like inheritance, encapsulation, and polymorphism.
Java is strongly typed language and variable must be declare first to use in program.In Java the type of a variable is checked at compile-time.
Java is an object oriented programming language.
Java applications can run in any virtual machine(JVM) or browser.
Objects of Java are class based even we can’t make any program in java without creating a class.
Java program has file extension “.Java” and translates source code into bytecodes which is executed by JVM(Java Virtual Machine).
Java is a Standalone laguage.
Java program uses more memory.
Java has a thread based approach to concurrency.
contained within a web page and integrates with its HTML content.