r/learnjava • • Oct 12 '20

Path to java web development

After reading some questions answer here in this group about web development with java, this is what I found:

For front-end:

  1. HTML

  2. CSS

  3. Javascript

  4. React/Angular/Vue

For back-end: 1.serverlets 2. JSP 3. JSF 4. JDBC 5. Spring/spring boot 6. Core java

Now I have some questions.

  1. I am reading "java: A beginners guide 6th edition". Should I learn applets?? Enums??

  2. Hibernet what is this??

  3. There is fight between J2EE and spring and spring boot. What should I learn first??

If I am missing something in this list plz cmnt. My aim is to build web apps and android apps. But for now I am aiming to build web apps and websites. I want to use java in backend. I know HTML, CSS and JavaScript.

46 Upvotes

27 comments sorted by

20

u/ignotos Oct 12 '20

JSP

If you're using a front-end framework, you probably don't need to use JSP. It can be handy to know the basics, but this is kind of outdated.

JSF

If you're using a front-end framework like React/Angular/Vue you definitely don't need this

Should I learn applets??

Applets are an out-of-date technology - they aren't really used any more

Enums??

Enums are a basic feature of the Java, which you absolutely need to know.

Hibernet what is this??

Hibernate is a tool for automating some of the work of saving/loading data from a database. It works with JDBC. You should learn JDBC first, and then look to see if Hibernate seems like it will be useful to you (once you know JDBC, you'll be able to understand what Hibernate does)

I am reading "java: A beginners guide 6th edition"

This is a fairly old book. If you like the way things are explained, then the fundamental Java stuff it contains will still be useful (that hasn't really changed). But if you're mostly interested in building modern webapps, I would skip chapters 15+, and look for other learning resources.

3

u/[deleted] Oct 12 '20

I am reading this book because it's based on javase 8. It's a stable version I recently discovered. So i guess everything in it is still relevant except applets. I also bought java the complete reference book on java se 10 maybe. I couldn't find latest books so I had to buy these. For web development is my list ok? Should I learn J2EE after core java and then spring?? Or sprint boot??

7

u/ignotos Oct 12 '20

I think chapters 15 and onwards are not really relevant to web development.

I don't really have a strong opinion about Spring vs Spring Boot etc. They all work, it's a matter of what you prefer, what the company you work for uses, or what you can find good learning resources for.

I think the minimum you need to know is:

For front-end: 1. HTML 2. CSS 3. Javascript 4. (one of) React/Angular/Vue

For back-end: 1. Core Java 2. Some kind of database, and how to connect to it with java (e.g. SQL+JDBC) 3. Some kind of backend REST framework (e.g. spring boot)

4

u/[deleted] Oct 12 '20

Okay thank you 😊

4

u/Dzeko_1 Oct 12 '20

JavaScript can be used as a backend with nodeJS btw!!

3

u/[deleted] Oct 12 '20

Yes. But i heard big companies or for enterprise level java is used for security purposes. That's why I started with java. So that I get to learn about the security aspect more.

3

u/Jake2197 Oct 12 '20

Based off my (limited) experience, Android and Java web development use a different technologies and don't share much in that regard.

I would choose one path and stick with that for now. In my time spent looking for jobs, android jobs are less common.

For Java, most of the job postings I have seen want varying levela of experience with Spring/Spring Boot. Learning the J2EE portions (JSP, servlets, etc.) Is a good starting point before jumping into learning Spring. It will help you understand what Spring is doing behind the scenes to accomplish the same sort of things that the J2EE stuff was doing.

2

u/[deleted] Oct 12 '20

I am planning to stick to web now. Okay so after learning core java. I will go through J2EE and spring?

3

u/missbloombastic Oct 12 '20

I'm no expert, but I'll try to help. Please verify with follow up research.

  1. I am reading "java: A beginners guide 6th edition". Should I learn applets?? Enums??

I'm not sure what exactly is in the book, but concepts like applets, servlets are what our modern frameworks like Springboot is based on. Even though you won't be making servlets at work, it's good to know them. Enums are a programming tools I'd say? Good to know, will come in handy while working.

2. Hibernet what is this??

JDBC is the traditional way of connecting to a database for your queries. Hibernate makes it easier, there's less configuration and performing database operations becomes more intuitive.

3. There is fight between J2EE and spring and spring boot. What should I learn first??

For practical purposes, learn spring and then springboot. Springboot is pretty easy, and it's what most of the companies want. But to thoroughly understand Springboot you need to know the concepts of Spring MVC. Again, it's all based on servlets (J2EE).

1

u/[deleted] Oct 12 '20

So I should go through J2EE first and then spring?

2

u/missbloombastic Oct 12 '20

You've time on your hands? Then yeah, it's generally how we learn it in school. If you're studying to get a job asap, then skip it. Also, I hope your programming concepts are clear. Like plain old java problem solving, D&A, OOPs concepts.

2

u/[deleted] Oct 12 '20

I am learning java from the book. Side by side i am also watching YouTube videos on them. OOP is tricky. It's hard to understand. I haven't started data structures and algorithm yet. But i have been solving problems using java on codeforces website. I am a student, studying Computer science and engineering. I want to get a job but not asap. I want to be job ready after graduation. I am going to start my second year of bachelor this December. I am learning java to understand oop better.

10

u/Hioneqpls Oct 12 '20

Learn Java 8+, and then figure out how to use Spring Boot to make endpoints and save stuff to a database. No J2EE nononono.

5

u/Cinghiamenisco Oct 12 '20

For back-end: 1.serverlets 2. JSP 3. JSF 4. JDBC 5. Spring/spring boot 6. Core java

JSP aren't used anymore (thanks God) since thet have been 'replaced' by JSF technology. Anyway, if you're planning to use Angular/React for front-end development, you can skip JSF aswell.

I'm gonna be honest. Java EE (Precedently called J2EE) is pretty hard to start with. It requires some clunky configurations that might demotivate someone who just wants to learn stuff.

In my opinion, you should learn Spring first. With spring boot Is WAY easier to setup a projects, and It Just "magically" works.

Later on, when you're confident, you can look at Java EE to have a Better understanding at how those magic things works. (Or you can Simply skip JavaEE, since a lot of workplace are migrating to Spring).

JDBC is useful, but It requires at least a bit of knowledge about databases. Once again, spring has "Spring data" that abstracts A LOT of the difficulties about database connections.

And once again, I'd start with that (Spring data), and slowly become friend with SQL, queries, JPA, and lower level JDBC stuff.

  1. I am reading "java: A beginners guide 6th edition". Should I learn applets?? Enums??

I don't know about the book, but "applets" are old stuff for sure, and they are not supported anymore.

I'd go for the basics chapters, and then I'd switch to another book/tutorial.

2. Hibernet what is this??

Well, technically, is a "JPA provider. It implements the JPA specifications"

A more friendly answer: "Is a set of extra 'rules' and methods and annotations, that will let you easily read/write stuff into the database"

It Is very used worldWide, and very useful, but as I said before, you might Need to have a bit of Database knowledge before diving into It.

3. There is fight between J2EE and spring and spring boot. What should I learn first??

J2EE Is the old name. Now it's just 'Java EE'

Anyway, I'd say go for Spring. Totally.

Easier to setup, easier to work with, funnier, and full of cool functionalities.

1

u/QueefFart Oct 12 '20

!remindme 1d

0

u/[deleted] Oct 12 '20

What do you mean??

4

u/town_girl Oct 12 '20

This is a bot for the person to be reminded when someone post here

-2

u/[deleted] Oct 12 '20

Why is no one commenting on my questions?

3

u/town_girl Oct 12 '20

Sorry, I don't know the answer for your questions, I just read but not expert on java. Just wait a little for someone that can help you, or try on FAQ

1

u/[deleted] Oct 12 '20

Okay thanks

1

u/RemindMeBot Oct 12 '20 edited Oct 13 '20

I will be messaging you in 1 day on 2020-10-13 18:45:04 UTC to remind you of this link

1 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.


InfoCustomYour RemindersFeedback

-1

u/my5cent Oct 12 '20

Remind me too

1

u/KaoSZveR Oct 12 '20

!remindme 5d

1

u/abharath93 Oct 13 '20

!remindme 5d

1

u/slowfly1st Oct 13 '20

I am reading "java: A beginners guide 6th edition". Should I learn applets?? Enums??

I checked the table of contents. Applets / Swing / JavaFX you don't need to learn for web development. Maybe read the chapter, so you have heard of it, know what it does and when you could use it.

Hibernet what is this??

Hibernate is an OR Mapper, as well as a JPA implementation. But I suggest you learn Databases and SQL first, if you want to go that path.

There is fight between J2EE and spring and spring boot. What should I learn first??

Well, JEE as well as spring are huge:

JEE Specs

spring initializr (click the add dependency button)

Both JEE and spring solve lots of problems and lots of similar ones. For a simple web app you can have a frontend written in one of those frameworks you've listed and on the backend spring core, spring boot, spring web for a rest backend and spring data/hibernate. Or a JEE application server with cdi, jax-rs (restful) and jpa/hibernate.

I've worked with both, personally prefer to work with spring. But the underlying concepts are more important to learn. A restful service is still a restful service, the technique of dependency injection doesn't change from one technology to the other, HTTP is older than java, and sql will always be sql.

0

u/avi0709 Oct 13 '20

Or just learn Node.js & be done with it, unless there is a technology constraint & you need to do it in ‘java’.