I am wondering what are the applications of java EE. I know we can make a website with help of servlets and JSP but that can be accomplished with PHP as well, then what is the benefit of coding a website in java when it can be done in a much simpler way in PHP. Also thinking as a client, one would ask the programmer to code in PHP than java as JAVA web hosting are way too expensive than simple shared hosting plans on which PHP website can run. Then what is the real benefit of JAVA?
I have started learning java EE a few days ago and I am wondering if I had made a correct decision. Please let me know what are the benefits of a website/web-app over other languages maybe PHP or .net. Also I there any other purpose of java other than the website building. Are there any popular applications which are built solely on java?
I am very confused if I has chosen the right path. Thanks in advance.
Very generic question. As such I can only give a very generic answer
You're not sure you have chosen the right path. Nobody ever is.
But where are you right now, and where do you want to go?
Yes you can make a website with servlets and JSP.
You can do the same with PHP. Or Perl. Or C# or asp.net. Each have positives and negatives. There is a broad common base though that won't hurt to learn in whatever language.
The server role is trending more and more to just delivering data (JSON) for a client to render in HTML. As such it can be anything you want. But Java isn't a bad choice.
Java on the server isn't going to disappear by any means. I would focus these days more on providing functionality through webservices and REST APIs than JSP. Of course they can be implemented in any language you like.
What I think is important is you understand the fundamental building blocks of web services/APIs, how they are used from the client side, and how you can implement them on the server side.
Then you can chop and change as necessary