The Similarity between Java and Scripting language is that they are both object-oriented language. Using Object -Oriented language we can change the properties and method of the object.
Java is completely object-oriented based language designed for a programmer to create an application that can be downloaded from any network and can be run independently on any application. The built in securities features of java provides you all software component required to run all the java application on almost all types of computers. The language is similar to C++, but the syntax is simple and easy to understand. The Java have a Java Virtual Machine(JVM) that allows java to run on any platform of the computer. The function of JVM is to carry out the message from the computer and translates those message for java and vice-versa. Java Virtual Machine is unique in itself such that it is compared to the structure of Esperanto. The SunMicrosystem introduced java in 1990 as an application to create household application. Further, it is expanded to internet, intranet and other application. In late 1991,this programming language climbed at the peak level than any other language.
In Term of security Java is a very securable language, this is one of the popular feature of java. Security in Java is inherent. The language is very securable in such a way that if a different programmer is not able to create applet that can go to user computer and can hack his username and password. The sandbox model of java allow it to stay within its boundaries in order to prevent from hacking. All this feature of java make it 1000 times better and securable than Microsoft' safety device. If there is an advantage ,then there is disadvantage, Java is slower than C++ programming language. So while its safety seems to ensure a temporary dominance on the internet
Java are of two form
1)Applet- These are the small bits of java code embedded in a HTML used for viewing in web pages.
2)Application-These are the standalone program that run and support on browser like Hot Java Browser.
Recommend the tutorial