AllFreePapers.com - All Free Papers and Essays for All Students
Search

Analysis of Java and Javascript

Autor:   •  March 20, 2011  •  Case Study  •  3,609 Words (15 Pages)  •  1,701 Views

Page 1 of 15

Analysis of Java and JavaScript

There exist not too many similarities between the Java and Java Script, despite what the names might suggest. They are both an Object Oriented Programming (OOP) language and this is the main and only real similarity between the two. Mainly people who don't truly know how to write in both the languages often consider JavaScript a distant relative of Java. Many of their programming structures are similar, but JavaScript contain a much smaller and simpler set of commands over Java. "It is easier for the average weekend warrior to understand." (Burns)

Both will create wonderful web page with high-end graphics. Both will provide an ultimate user-friendly highly interactive experience for the user and for the Web page. But they are not created equally by any means.

The contrasts are much broader and show having the same first four letters in the name is purely marketing measures. Java is a total object oriented programming language that is used to create applets and stand-alone programs, while JavaScript is a more user intuitive program tool that is used to design scripts for the sole use on the Worldwide Web (TechFaq).

Uses of Java

Today, Java plays a significant role in the corporate world. Many companies of all sizes are using Java as the main programming language to develop various applications such as Web based applications, e-commercial, banking applications, gaming application, embedded systems, media, and many more. Java is a simple and yet powerful object oriented programming language. Java technology's versatility, efficiency, platform portability, and security make it the ideal technology for network computing (Java). From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet, Java technology is present everywhere.

Java programs can be embedded in HTML documents such as Web pages. When a browser loads as Web page which containing and Applet, the Applet downloads into the web browser and executes.

How to add Java Applet to a page

<html>

<head>

<title>

Java Applet Testing

</title>

</head>

<body>

Welcome to Java programming!

<hr>

<center>

<applet code="WelcomeApplet.class" width="300" height="200">

</center>

</applet>

</body>

...

Download as:   txt (19.4 Kb)   pdf (217.2 Kb)   docx (19.5 Kb)  
Continue for 14 more pages »