| Comparison |
Javascript |
Java |
| Birth time |
1995 |
1995 |
| Used to have a name |
Mocha, LiveScript |
Oak |
| Parent company |
Netscape Corporation (USA) |
Sun Micro Systems Inc. (USA) |
| Main author |
Brendan Eich a man |
James Gosling and his small partners |
| Development completion Time |
10 days |
One or two years |
| Is it object-oriented? |
Yes, based on prototype and prototype chain mode |
Yes, class-and inheritance-based approach |
| The programming style you can use |
Process-oriented, object-oriented, function-oriented |
Process-oriented, object-oriented, Java8 some features of function-oriented |
| Language type |
Dynamic language, weak type |
Static language, strongly typed |
| Can I use it for customer service development? |
Yes, mainly for browser-side |
Yes, but it's completely lost to Microsoft's Vs.net series in contention for desktop applications |
| Can I use it for mobile-side development? |
Yes, call the Web App |
Yes, call Android (Android) |
| What is the number of class libraries and frameworks? How is the community performing? |
Very much, very rich, very active |
More, more rich, more active |
| Now, master. |
All-day JavaScript open Source community |
Oracle Corporation (USA) |
| The difficulty of learning for beginners? |
It's not easy to get started, learn to be easy, learn to master |
Slow to get started, learning to be slow, learning to be proficient is not easy. |
| System structure |
Essentially streamlined, but now derived from the class library, the framework is more and more, people dizzying |
has always been relatively large and complex. |
| Is it cross-platform? |
Yes (almost all browsers in the world support, if not supported, almost no one to use) |
Yes (as long as the Java Virtual Machine installed on the computer can be run) |
| A compiled or interpreted type? |
Explanatory, but some common code can be compiled with cost-code |
First compiled into bytecode, then interpreted by the virtual machine execution |
| Which is more powerful? |
Can not be generalized to answer, JavaScript master than Java low hand powerful |
No general answer, Java Master lower hand than JavaScript powerful |
| Which is closer to H5? |
Javascript |
|
| Which do most schools in China teach? |
|
Java |