Friday, May 21, 2010

What are differences and comparisons of HTML and Java programming?

Hi,





I was wondering if you could possibly tell me some similarities and differences between HTML and Java programming?





Thanks for your help!!

What are differences and comparisons of HTML and Java programming?
Other than both of them being object oriented programming languages, they barely have anything common.





Differences that come into mind first:


1. HTML is strictly front end language, Java is not


2. HTML is a script - it gets compiled/parsed on the fly by the browser while Java is pre-compiled into bytecode prior to become usable


3. HTML is only usable within a browser, and can barely do anything other than displaying info passed to it while Java is capabale of data processing of virtually any complexity.


4. Pretty much everything else...
Reply:HTML and java are completely different.





HTML is a markup language .. i.e. it just defines how the data must be represented which should not be confused with a programming language. You cant program any logic.





whereas Java is a programming language where you can actually provide some type of logic.
Reply:To be honest, there are very few similarities between HTML and Java.


HTML is what they call a "markup" language, and is an "interpreted" language, not a compiled one like Java. Basically, all HTML does is define the appearance and layout for webpages. When a page is loaded, the browser "reads" the HTML for the page, and it tells it where to put the various elements, what colors to make them, etc. It is not capable of performing any kind of logical checks, calculations, or data manipulation - it just defines appearance.


Java, on the other hand, is a full blown, 3rd generation programming language, capable of performing sophisiticated data manipulations and calculations. Java is a compiled language, meaning that before a Java program can be run or redistributed, it must be "compiled", which basically turns the code into a language that the computer can more easily understand.


Typically, HTML is used for the "front end", and Java is used for the "middle tier", connecting to a database at the "backend". Hope this helps a little.

garden sheds

No comments:

Post a Comment