Dreevoo.com | Online Learning and Knowledge Sharing
 
Home | FORUM | Design and creativity | What is the difference between Java and Javascript?
Gost
Click to view your profile
Shortcuts
Fresh topics Fresh topics
My topics My topics
Unanswered topics Unanswered topics
Forum rules Forum rules
Who is online?
Registered users: Registered users:
Guests: Guests:

 
  What is the difference between Java and Javascript?
   
   
 
 
 
USER
MESSAGE
  Click to open user profile  
1st Nov 2012, 7:20 AM
Hi.

Can anyone tell me what is the main difference between Java and Javascript. As I heard these two are not from the same company and act different.

Thank you.
 
 
  Click to open user profile  
17th Dec 2012, 9:38 AM
Java is a statically typed language, dynamic, class-based, prototype-based. Java constructors are special functions that can only be called at object creation (JavaScript #constructors" are just standard functions). Java requires all non-block statements to end with a semicolon; JavaScript inserts semicolons at the ends of certain lines.

Java uses block-based scoping; JavaScript uses function-based scoping. Java has an implicit this scope for non-static methods, and implicit class scope; JavaScript has implicit global scope.

JavaScript supports closures; Java can simulate sort-of "closures" using anonymous classes. (Real closures may be supported in a future version of Java.) All JavaScript functions are variadic; Java functions are only variadic if explicitly marked. JavaScript prototypes can be redefined at runtime, and has immediate effect for all referring objects. Java classes cannot be redefined in a way that affects any existing object instances.

JavaScript allows methods in an object to be redefined independently of its prototype (think eigenclasses in Ruby, but on steroids); methods in a Java object are tied to its class, and cannot be redefined at runtime.

More info at http://goo.gl/5Jmte

changed: Jenny (17th Dec 2012, 5:38 PM)
 
 
  Click to open user profile  
25th Dec 2012, 5:33 AM
What is the point in same name if not under the same hood ?
 
 
  Click to open user profile  
2nd Jan 2013, 10:02 AM
Thank you for sharing.
 
 
  Click to open user profile  
2nd Jan 2013, 10:03 AM
Here is also an explanation from Java.com:

The JavaScript programming language, developed by Netscape, Inc., is not part of the Java platform. JavaScript, does not create applets or stand-alone applications. In its most common form today, JavaScript resides inside HTML documents, and can provide levels of interactivity to web pages that are not achievable with simple HTML.

Listed are key differences between the Java and JavaScript.Java is an OOP programming language while Java Script is an OOP scripting language.Java creates applications that run in a virtual machine or browser while JavaScript code is run on a browser only.Java code needs to be compiled while JavaScript code are all in text.They require different plug-ins.

Source: http://www.java.com/en/download/faq/java....

changed: jj_edwards (2nd Jan 2013, 6:04 PM)
 
 
  Click to open user profile  
25th Jan 2024, 4:46 PM
I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! UFABETโปรโมชั่นเดิมพันมากที่สุด https://www.mastermarking.com/ufabetโ....
 
 
  Click to open user profile  
20th Feb 2024, 2:00 PM
I found your this post while searching for some related information on blog search...Its a good post..keep posting and update the information. Установка прямотока https://auto-service.org.ua/ремонт....
 
 
  Click to open user profile  
29th Feb 2024, 2:15 PM
Nunu TV makes it so easy to watch my favorite shows again with their great 티비다시보기 service.https://www.nunutv.org
 
 
  Click to open user profile  
29th Feb 2024, 2:23 PM
누누tv offers an exceptional streaming experience with its extensive content library and user-friendly interface. It's my preferred choice among OTTs.https://www.nunutvs.com
 
 
  Click to open user profile  
29th Feb 2024, 2:27 PM
Explore the op사이트 순위 to discover top-performing sites.https://www.opsite.biz
 
 
  Click to open user profile  
13th Mar 2024, 10:19 AM
Please share more like that. คาเฟ่อุบลราชธานี https://lukmatcha.com/
 
 
  Click to open user profile  
7th Apr 2024, 12:42 PM
You delivered such an impressive piece to read, giving every subject enlightenment for us to gain information. Thanks for sharing such information with us due to which my several concepts have been cleared. ซื้อประกันภัยรถยนต์ออนไลน์ราคาถูก https://dsure.com/blog/2024/04/03/ซื....

 
 
  Click to open user profile  
10th Apr 2024, 6:29 PM
Such kind of helpful questions and discussion can address the difference between java as a programming language and javascript. Thanks for sharing.
 
 
  Click to open user profile  
13th Apr 2024, 4:50 PM
Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. 안전놀이터 https://www.panttaegi82.com/safemilano
 
 
  Click to open user profile  
29th Apr 2024, 12:52 PM
Attractive, post. I just stumbled upon your weblog and wanted to say that I have liked browsing your blog posts. After all, I will surely subscribe to your feed, and I hope you will write again soon! ร้านเหล้าอุบล https://wabbbb.com/
 
 
  Click to open user profile  
23rd Oct 2024, 6:15 AM
The game’s vibrant graphics and charming character designs add to its appeal. Each Incrediboy is animated with unique movements, bringing your musical compositions to life. The visuals enhance the overall experience, making it not only a musical https://incrediboxsprunki.org/ but also a visual delight.

 
 
  Click to open user profile  
14th Nov 2024, 5:29 PM
Locksmithlocal services focus on security, while the difference between Java and JavaScript lies in their usage and functionality. Java is a full-fledged programming language used for building complex applications, while JavaScript is a scripting language mainly used for web development to create interactive features on websites. Java is compiled and runs on various platforms, whereas JavaScript is interpreted and executed in web browsers, making them suitable for different programming needs. https://www.locksmithlocal.co.uk/
 
 
  Click to open user profile  
Saturday, 16th Nov 2024, 9:35 AM
I was unable to access the specific page, but based on general content, I can relate it to Welpix by emphasizing how both platforms cater to the need for innovative, high-quality visual content. While Welpix specializes in CGI and 3D product animations, offering creative flexibility for businesses, forum discussions like those on Dreevoo often explore practical tips and ideas related to photography, including CGI techniques. Both sources aim to enhance how visual content is created and presented in the digital age. https://welpix.com/
 
 
 
   
   
 
online learning made for people
Dreevoo.com | CONTRIBUTE | FORUM | INFO