What is a POJO in Java? Almost EVERYONE Gets This Wrong

preview_player
Показать описание

What is a POJO in Java? You probably know POJO stands for Plain Old Java Object, but what does that mean? So many others get this wrong, so my goal is to clarify the confusion - it doesn't have to be complicated. But it does have to be right.

Learn exactly what a POJO means in the Java world, and where it came from. Also learn a common mix-up between a POJO and a Java Bean.

POJOs seem like a fancy or complicated term, but it's really super simple!

Learn or improve your Java by watching it being coded live!

Hey, I'm John! I'm a Lead Java Software Engineer and I've been in the programming industry for more than a decade. I love sharing what I've learned over the years in a way that's understandable for all levels of Java developers.

Let me know what else you'd like to see!

Links to any stuff in this description are affiliate links, so if you buy a product through those links I may earn a small commission.

📕 THE best book to learn Java, Effective Java by Joshua Bloch

📕 One of my favorite programming books, Clean Code by Robert Martin

🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial

🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)

📹Phone I use for recording:

🎙️Microphone I use (classy, I know):

Donate with PayPal (Thank you so much!)

☕Complete Java course:

Рекомендации по теме
Комментарии
Автор

Awesome, clear and simple explanation of something I've been scratching my head over trying to understand DTOs and Entities in relation to adding new data to a database. Thank you, truly.

bissen
Автор

Thank you so much. I’m a new subscriber and every video you post is like a refresher to me in a way. You are a great help to everyone in the community, whatever experience and programming level they are right now.

roldanreal
Автор

John you are amazing man. Was learning from you when I started programming 2 and a half years ago. Got a job. Programming for a year and a half now and still come back here when I need something properly clarified. Beauty.

cesarlopes-hm
Автор

i am learning java the easy way, but i wonder how come you dont have so much subscribers!!! Anyway keep giving good content. Love u from Botswana, Africa.

bwprogrammers
Автор

Man, your videos are just so good! Congratulations on your work!

Vinicius
Автор

Thank you so much for the short precise and clear elaboration with example.

Could you please provide the difference between ValueObject and POJO?

Aryabarta-ghxy
Автор

Can you talk about DTO (Data transfer object classes). I see that people has many definitions for that

DannyJulian
Автор

I wish every teacher could explain things like this, easy to understand and good examples! Thank you ^^

beatrizruizdeaguiar
Автор

Your explanantions are quite elegant. Thanks for doing these. Would love to know more about Serializable.

ShaileshDagar
Автор

thank you for clearing my long awaited doubt.

hingchongrongphar
Автор

Great video, very clear. Thank you, John! A couple questions:

Is a Java bean a POJO? It implements another class. Or would it cease to be one only if it implemented an *outside* class? (Since Serializable is a "built-in" Java class, a bean can still count as a POJO.)

Also, what if one of the fields of the class has a data type that depends on (or is) another class? Would that still be a POJO?

johnkeck
Автор

I sugguest you do a java sudoku solver tutorial. It’s a common lab assignment in data structures and algorithms from what I’ve been hearing.

dilln
Автор

Señor lo quiero mucho explico muy bien, nueva suscriptora

julianarodriguez
Автор

I searched what is a Java Bean something new I learned even though I self taught myself Java 10 years ago, and still don't know what a Java Bean is lol, I've come across your content before however very well explained.

droidlycodes
Автор

Thank you. Its was the best understanding pojo and Serializable. Good luck

rollosroyce
Автор

What a nice video. it was very usual for me, because in the web arent mutch informations availible. Short and onPoint!

domal
Автор

Your videos are awesome, with clear and concise explanation, thank you! I hope you make a video about beans and inversion of control, just because I think your explanation will be clearer than other's.

idomoshe
Автор

POJO Plain Old Java Object. Thank you, Started in 1983 programming, no schooling, just hobby. Missed a bunch of history. I remember putting a dot on a blank screen and it was brilliant, amazing, awesome. ;)

stephenweber
Автор

Thanks for putting it in simple words!

chlikhita
Автор

Great video. I was going to ask if a Java bean can be a pojo but you answered that when you typed implements serialize.

Speaking of which, if you haven’t already, can you do a video on serialize

wristdisabledwriter
welcome to shbcf.ru