Java is a general purpose, compiled language used for server side programming.it is an independent language executed by using java virtual machine. To code and debug in java you need java development kit and specific IDEs. Java is used for mobile applications development, desktop application development, web servers, embedded systems and much more. Java program uses more memory. It is a class based programming based on the concept of object oriented programming.
|Example||Mainly used for back end||Mainly used for front end|
|Example||Allows better security||Needs more effort to enhance security|
|Example||Requires java development kit||Can be written in any text|
|Example||Can be used for various apps||Can be used for web apps only.|