Welcome Guest ( Log In | Register )



2 Pages V  < 1 2  
Reply to this topicStart new topic
> javascript vs java
ferdlamb
post Feb 22 2008, 07:40 AM
Post #11


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 21
Joined: 22-February 08
Member No.: 28,612



The only thing they have in common is their name. marijnnn explained it very well I think.
Go to the top of the page
 
+Quote Post
java-area
post Feb 22 2008, 08:00 PM
Post #12


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 47
Joined: 4-February 08
Member No.: 28,119



QUOTE(wannabeeaweak @ Sep 24 2004, 11:41 PM) *
in my opinion javascript is better then java becasue java requires more programing experecense then javascript and i think to that javascript is more reliable then java in some ways


I think these two languages are not comparable, because they are intended to different things:
JavaScript is a typical scripting language. JavaScript statements are executed into the browser on client side.
But Java is object-oriented language for server-based- and standalone- applications as well as for applets.
I agree that many statements in these languages look very similar, but they are used on different layers.

However, we can compare JavaScript implementation of business logic with JSP-based implementation, becouse we have sometimes the choice how to implement the busines logic - with JavaScript or with JSP!
For example, we can validate data on server side (using Java) as well as on client side (using JavaScript).
If we respect security, we need to validate data on server side only.
But for non-secure application, we can implement the similar bussines logic on client side, using JavaScript - this implementation will work quicklier. So, it is one of the ways to improve performance.

QUOTE
Is it possible to convert javascripts to java applets? is yes? how?

Applet is a Java application. So, every applet contains not only its own source code, but also uses classes from different Java packages (java.lang.* etc.)
Are we able to convert methods of Java classes into JavaScript functions???
Probably it is possible, but it is a very time-consumed job!
I think it is not good idea to re-use source code of applets in Javascripts. It is easier to create new scripts from scratch!

This post has been edited by java-area: Feb 23 2008, 04:39 AM
Go to the top of the page
 
+Quote Post
iGuest
post Apr 15 2008, 05:51 AM
Post #13


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



java vs js
javascript vs java

Some people here are a bit confused..



Javascript is a client side browser scripting language where execution occurs on the client (Firefox). Java is an enterprise programming language used to build business applications. There should be no comparison between the two because they are totally different and have completely different uses.
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Getting Screen Resolution using Javascript.(8)
  2. How To Create A Popup Window With Javascript?(19)
  3. Javascript: Disable Mouse Right-click In Browser(16)
  4. Best Way To Learn Javascript(9)
  5. Javascript: Text To Texbox And Back To Text(2)
  6. Unobtrusive Javascript Image Rollovers(0)
  7. Dynamicdrive: Good Site For JavaScript Codes(5)
  8. Downloads With Javascript?(7)
  9. Javascript: Simple Slidedown Menu(2)
  10. JavaScript: Simple Dropdown Menu(1)
  11. Calling Of Functions Between Mulitple External Javascript Files(2)
  12. Javascript: Browser Detection Script(0)
  13. JavaScript: Hide And Show Any Element With CSS(5)
  14. Ever Needs To Find Out A Table Height Or With With JavaScript(2)
  15. Create And Import JavaScript Modules For A Large Script(2)
  1. Vertical Marquee Using JavaScript(0)
  2. JavaScript Frames & Querystring(4)
  3. JavaScript Off Redirect Script(2)
  4. I Need Help With Javascript.(7)
  5. Problems With Dynamically Loading Javascript(2)
  6. Add Text To Textarea(6)
  7. Javascript Question(4)
  8. Javascript: How Do I Create Embedded Pop-up Windows?(7)
  9. Problem With Javascript Alert();(9)
  10. Include Function For Javascript(7)
  11. Fun With Javascript And Forms(2)
  12. Javascript Help Needed : Alert(z) Works Fine But Document.write Not(2)
  13. Javascript Changes Aren't Working.(6)


 



- Lo-Fi Version Time is now: 14th October 2008 - 04:41 AM