Java usage vs Javascript usage.

jskfan
jskfan used Ask the Experts™
on
Java usage vs Javascript usage.

If I undestand:

--- knowing Java  you can develop Applications that interacts with Databases. I am not sure knowing Java by itself if you can develop Dynamic Web Applications that interacts with Databases and fetch the results.( I mean probably you will have to learn other languages too, such as HTML, JSS,etc..)

---knowing Javascript what kind of advantage you get over know just Java ? I believe JavaScripts also interacts with Databases on the server and fetch the result and render the result to end user via the browser.

so it sounds to me, Java can be used for Non Web Application. JavaScript for Web Application.

If that's the case it sounds to me that knowing Java Scripts is more useful that knowing Java, Web Apps are much more in demand.


Any Expert to shade some lights on that?

Thank you
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
Commented:
java and javascript have nothing at all to do with each other.

Java was designed to be device independent. any os any device.  Unfortunately it is full of holes.  Java SE will soon not be free but a licensed product. Oracle trying to get some money back from their investment

Author

Commented:
I know that they are different.
Which of them is worth learning and in demand in the Job Market?
Most Valuable Expert 2017
Distinguished Expert 2018
Commented:
Java (in this context) is a server side language that handles the generation of the pages that are sent to the browser. It is used to pull data from databases and other information sources and combine them in to HTML pages that are then sent back to the browser.

JavaScript (in this context) is used to enhance functionality in the browser. It is a scripting language used to manipulate the page after it has been loaded.

Java can be used to develop stand alone applications as well as web applications that run in a Java container in the browser (although for security reasons such implementations are not widely used).

JavaScript is used in server environments as well such as Node.js and Google and Amazon cloud functions.

As to which one you learn - that depends. Are you going to be a back end developer / a front end developer or a full stack developer.

The first you would need to know a server side language (Java, PHP and in the case of Node.js - JavaScript).
Frontend - you need HTML, CSS and JavaScript
Full stack you need all of those.

JavaScript is becoming quite pervasive - with the Hybrid and Native Frameworks (AngularNative / ReactNative) the mobile landscape is moving toward a more JavaScript centric approach.

Java on the other hand is probably the most popular and sought after programming skill in the market place as it is heavily used in enterprise - but it does require a lot of study and experience and is fairly narrow focused (I will explain this now)

JavaScript has a much wider focus - it is used in a very diverse way.
* Browser scripting [jQuery, plain JavaScript],
* Browser frameworks and libraries [Angular, React, Vue]
* Mobile applications [AngularNative, ReactNative]
* Server side applications [Node.js, Google Cloud Functions, Amazon Lamda functions]
* Document processing [AdobeScript]

Typescript which is transpiled to JavaScript is rapidly gaining traction for Web / Mobile applications.

Not all web applications use Java - most use JavaScript in some form.

Bottom line is both are required in the Web Application space, both require extensive study and experience. Which you chose is dependent on where you want to end up.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
If you know just Java which I think is good when doing Database programming, will you still be able to do Web Development Back end ?
iI mean is Java strong enough doing Web Dev Back End ?
 
the Web Dev Front End sounds like a kingdom of JavaScript..
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
I don't understand the question.

In a web context Java is 99.9% about building the backend - that is the role it fills in the stack?

In Java Web Application
Java runs on a server and outputs the HTML you see in the browser.

The HTML runs in the browser (optionally with JavaScript to supplement the interface and user interactions).

Author

Commented:
Thank you for your insights Guys
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
You are welcome.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial