Coding with John
Coding with John
  • 92
  • 16 332 881
New Java Version 22 - The 3 Best New Features You'll ACTUALLY Use
💻 Check out JetBrains IDEs here: jb.gg/JetBrains-IDEs
Java version 22 is out now! Here are 3 new features that you can absolutely make use of as a beginner or advanced Java programmer.
☕ Java Course: codingwithjohn.thinkific.com/courses/java-for-beginners
Java 22 was release just a few weeks ago. Is it worth the upgrade? We'll talk about 3 new features in Java 22 that you can actually put into action in your programs TODAY.
Learn or improve your Java by watching it being coded live!
Hi, 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 learners.
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
amzn.to/36AfdUu
📕 One of my favorite programming books, Clean Code by Robert Martin
amzn.to/3GTPVhf
🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial
www.audibletrial.com/johncleancode
📹Camera I use for recording:
amzn.to/3wlXcmR
🎙️Microphone I use (classy, I know):
amzn.to/3AYGdbz
Donate with PayPal (Thank you so much!)
www.paypal.com/donate/?hosted_button_id=3VWCJJRHP4WL2
☕Complete Java course:
codingwithjohn.thinkific.com/courses/java-for-beginners
codingwithjohn.com
Переглядів: 93 691

Відео

Java is "Strongly Typed"? - Here's What That ACTUALLY Means
Переглядів 41 тис.4 місяці тому
You might know Java is strongly typed, but here's what that actually means. ☕ Java Course: codingwithjohn.thinkific.com/courses/java-for-beginners Everyone has heard that Java is "strongly typed", but not many people know what that actually means. Are other languages "weakly typed"? Why is Java like this, and why does it matter? Learn or improve your Java by watching it being coded live! Hi, I'...
Java's Garbage Collection Explained - How It Saves your Lazy Programmer Butt
Переглядів 63 тис.7 місяців тому
This is how Java does memory management through garbage collection! ☕ Complete Java course: codingwithjohn.thinkific.com/courses/java-for-beginners Ever wondered how garbage collection works in Java? Java handles a lot of memory management by itself behind the scenes, so you never have to think about it. We'll talk about what it cleans up, and how it does it in a simple way that even beginners ...
Static vs Non-Static Variables and Methods In Java - Full Simple Tutorial
Переглядів 155 тис.9 місяців тому
Struggling with static vs nonstatic in Java? You found the perfect video! ☕ Complete Java course: codingwithjohn.thinkific.com/courses/java-for-beginners For beginner Java programmers, the concept of static vs nonstatic fields and methods can be incredibly confusing. I know it was for me! But it doesn't have to be difficult. We'll go over EXACTLY what the difference is, how they're used, and wh...
How I Memorized ALL IntelliJ Shortcuts Effortlessly
Переглядів 44 тис.10 місяців тому
Learn IntelliJ shortcuts effortlessly with this plugin. ☕ Complete Java course: codingwithjohn.thinkific.com/courses/java-for-beginners Key Promoter X is an IntelliJ plugin that acts as your own personal shortcut coach. Learn or improve your Java by watching it being coded live! Hi, I'm John! I'm a Lead Java Software Engineer and I've been in the programming industry for more than a decade. I l...
Java's Hello World Is About To Change Forever
Переглядів 190 тис.Рік тому
Java's Hello World program is about to get a HUGE makeover. ☕ Complete Java course: codingwithjohn.thinkific.com/courses/java-for-beginners Java's new JDK Version 21 is coming this September, and bringing in some amazing changes. Let's talk about the very best one here. Download it here: jdk.java.net/21/ Learn or improve your Java by watching it being coded live! Hi, I'm John! I'm a Lead Java S...
Selection Sort Tutorial in Java: The Snail's Guide to Sorting
Переглядів 48 тис.Рік тому
Let's learn the Selection Sort algorithm, and code it in Java! ☕ Complete Java course: codingwithjohn.thinkific.com/courses/java-for-beginners Selection Sort is a great sorting algorithm for beginning programmers to learn. It's just a few lines of code and makes a great coding exercise. But Selection Sort isn't exactly the fastest algorithm out there... Learn or improve your Java by watching it...
Vectors in Java: The 1 Situation You Might Want To Use Them
Переглядів 77 тис.Рік тому
Vectors in Java - What they are and how to use them ☕ Complete Java course: codingwithjohn.thinkific.com/courses/java-for-beginners What are Vectors in Java? How do they work, and how are they different from ArrayLists? Why should you use one or the other? We'll learn all about Vectors in Java, why you don't see them much, but one situation you might want to use them. Learn or improve your Java...
Binary Search in Java - Full Simple Coding Tutorial
Переглядів 109 тис.Рік тому
Full tutorial on Binary Search in Java! ☕ Complete Java course: codingwithjohn.thinkific.com/courses/java-for-beginners What is Binary Search? How does it work, why is it useful, and how do you implement your own version of a Binary Search in Java? We'll learn all about Binary Search, why it's faster than other search algorithms, and walk through a full implementation from scratch. SOURCE HERE:...
Set and HashSet in Java - Full Tutorial
Переглядів 198 тис.Рік тому
Full tutorial on Sets and HashSets in Java! Thanks to Mailgun for sponsoring this video! Go to mailgun.com/john to try Mailgun today. ☕ Complete Java course: codingwithjohn.thinkific.com/courses/java-for-beginners What exactly are Sets and HashSets in Java? How are they different? How do you use them, and how are they different from Lists and ArrayLists? We'll learn all about Sets and HashSets ...
Why Are All The Best Java YouTubers Bald? - John Answers Your Comments
Переглядів 19 тис.Рік тому
I answer your comments! ☕ Complete Java course: codingwithjohn.thinkific.com/courses/java-for-beginners Learn or improve your Java by watching it being coded live! Hi, 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 learners. Let me ...
Java's Creators Rejected Multiple Inheritance - Here's Why
Переглядів 67 тис.Рік тому
Java's creators didn't include multiple inheritance. Have you ever wondered why? ☕ Complete Java course: codingwithjohn.thinkific.com/courses/java-for-beginners Multiple inheritance was excluded from Java from the very beginning. But why was multiple inheritance not included in Java when so many other languages include it? Learn all about Multiple Inheritance, including why Java doesn't have it...
LeetCode Exercise In Java - Longest Substring Without Repeating Characters - FAST Solution
Переглядів 85 тис.Рік тому
Full tutorial for solving the LeetCode longest substring without repeating characters problem in Java! Thanks to Mailgun for sponsoring this video! Go to mailgun.com/john to try Mailgun today. 00:00 The Problem 03:51 Brute Force Solution Discussion 07:27 Brute Force Solution Implementation 15:57 Brute Force Solution Results 16:35 Coming Up With a Better Solution 20:09 Fast Solution Discussion 2...
Java Reflection Explained - bɘniɒlqxƎ noiɟɔɘlʇɘЯ ɒvɒᒐ
Переглядів 172 тис.Рік тому
Java Reflection Explained - bɘniɒlqxƎ noiɟɔɘlʇɘЯ ɒvɒᒐ
LeetCode Exercise in Java Tutorial - Two Sum FAST Solution
Переглядів 167 тис.Рік тому
LeetCode Exercise in Java Tutorial - Two Sum FAST Solution
Java Custom Exceptions Tutorial - It's Way Easier Than You Think
Переглядів 148 тис.Рік тому
Java Custom Exceptions Tutorial - It's Way Easier Than You Think
Optionals In Java - Simple Tutorial
Переглядів 198 тис.Рік тому
Optionals In Java - Simple Tutorial
How To Call a REST API In Java - Simple Tutorial
Переглядів 257 тис.2 роки тому
How To Call a REST API In Java - Simple Tutorial
Annotations In Java Tutorial - How To Create And Use Your Own Custom Annotations
Переглядів 239 тис.2 роки тому
Annotations In Java Tutorial - How To Create And Use Your Own Custom Annotations
Records In Java - Full Tutorial - The Best New Java Feature You're Not Using
Переглядів 244 тис.2 роки тому
Records In Java - Full Tutorial - The Best New Java Feature You're Not Using
Top 5 Terrible Java Coding Techniques You Need to Be Using Right Now
Переглядів 116 тис.2 роки тому
Top 5 Terrible Java Coding Techniques You Need to Be Using Right Now
Null Pointer Exceptions In Java - What EXACTLY They Are and How to Fix Them
Переглядів 90 тис.2 роки тому
Null Pointer Exceptions In Java - What EXACTLY They Are and How to Fix Them
Lambda Expressions in Java - Full Simple Tutorial
Переглядів 707 тис.2 роки тому
Lambda Expressions in Java - Full Simple Tutorial
How To Create Variables That Don't Suck - Writing Clean Java Code
Переглядів 56 тис.2 роки тому
How To Create Variables That Don't Suck - Writing Clean Java Code
Java Unit Testing with JUnit - Tutorial - How to Create And Use Unit Tests
Переглядів 622 тис.2 роки тому
Java Unit Testing with JUnit - Tutorial - How to Create And Use Unit Tests
How To Debug Java Code The Right Way - Eclipse Debugger Full Tutorial
Переглядів 176 тис.2 роки тому
How To Debug Java Code The Right Way - Eclipse Debugger Full Tutorial
Generics In Java - Full Simple Tutorial
Переглядів 1 млн2 роки тому
Generics In Java - Full Simple Tutorial
Fibonacci Series In Java With Recursion - Full Tutorial (FAST Algorithm)
Переглядів 151 тис.2 роки тому
Fibonacci Series In Java With Recursion - Full Tutorial (FAST Algorithm)
Quicksort Sort Algorithm in Java - Full Tutorial With Source
Переглядів 231 тис.2 роки тому
Quicksort Sort Algorithm in Java - Full Tutorial With Source
Insertion Sort Algorithm in Java - Full Tutorial With Source
Переглядів 94 тис.2 роки тому
Insertion Sort Algorithm in Java - Full Tutorial With Source

КОМЕНТАРІ

  • @RefaatIbrahimXIT
    @RefaatIbrahimXIT 5 годин тому

    Who is that in the picture to your left

  • @XinWongDigital
    @XinWongDigital 11 годин тому

    hahahaha, great video. im thinking a method that has both remove/add and index ref at the same time. Shall we cast the list to the diffrent type.Now im wondering what is the performance like for conversion. Thanks for the great video again. Big fan

  • @lcgswolf
    @lcgswolf 11 годин тому

    I've learn a lot of things with this video, however, I find my self having hard time to forget : "sounds very poopie" hahahahaha

  • @BakhtyarQadri
    @BakhtyarQadri 12 годин тому

    Inshort, LinkedList is way better than ArrayList (totally unexpected for me), if memory is not an issue.

  • @kingshorts12590
    @kingshorts12590 14 годин тому

    Thanks sir

  • @HocineFerradj
    @HocineFerradj 22 години тому

    Best way to calculate Fibonacci number is : public static double fibonacci2(double number) { double a = 1 / Math.sqrt(5); double b = Math.pow((1 + Math.sqrt(5)) / 2, number); double c = Math.pow((1 - Math.sqrt(5)) / 2, number); return Math.round(a * (b - c)); }

  • @Dean-rs2nt
    @Dean-rs2nt 22 години тому

    wow wait im confused.... you wrote String string1 = new String ("hello"); Could you not have just wrote String string1 = "hello"; ??

  • @user-lw4ex3ek6i
    @user-lw4ex3ek6i 23 години тому

    Who else is watching in 2024

  • @manojkarthik6158
    @manojkarthik6158 День тому

    Question Integer a = 100; Integer b = 100; System.out .println( a==b ) The output is true Integer a = 200; Integer b = 200; System.out .println( a==b ) The output is false Why ?

  • @deadmau5remizzer346
    @deadmau5remizzer346 День тому

    Do you think you can do a video on comparator and comparable in Java?

  • @gideonyuval
    @gideonyuval День тому

    Really good video. It would be nice if you'd explain why I'd want to write something like "Animal myAnimal = new Dog();". The upcasting need is clear for functions, but less so about having an Animal reference to a Dog object

  • @AdekunleOlusegun-l4m
    @AdekunleOlusegun-l4m День тому

    Wow, John, please give yourself a pat on the back on my behalf 😊. This was hands down the best Java intro i have seen online. Thanks for making this ❤

  • @RonaldoArch
    @RonaldoArch День тому

    Great video, thenks

  • @motionattached
    @motionattached День тому

    Your teaching style has performance edge, great job! 🕹

  • @lootster
    @lootster День тому

    This 11 mins video probably saves you HOURS of research on the internet what the keyword Static means, you're the best John! 👏

  • @lenfy.
    @lenfy. День тому

    I am a beginner in Java and even though I don't know that much about Java I could easily understand most of the things in the video. I'm so happy that I came across your channel. Looks like this channel will help me a lot :D

  • @karentechnologies3990
    @karentechnologies3990 2 дні тому

    This video is the best explanation for the Java pass by value/reference topic on UA-cam. Subscribed

  • @varshinisalian3214
    @varshinisalian3214 2 дні тому

    Fab❤

  • @AlmightyMalachi3690
    @AlmightyMalachi3690 2 дні тому

    This deserves an award for being the first perfectly clear guide on generics. I've done many courses and many java certified developer courses that fail to explain exactly how they work. Well done.

  • @DhruvinMistry69
    @DhruvinMistry69 2 дні тому

    Great explanation , wish i knew your yt channel earlier

  • @michaelfaraday2657
    @michaelfaraday2657 2 дні тому

    Best video about this topic I've ever seen!

  • @giftbanda9795
    @giftbanda9795 2 дні тому

    public static void main(String[] args) { Map<Integer, Integer> memo = new HashMap<>(); int result = fibonacci(5, memo); System.out.println(result); } /** * Calculates the nth Fibonacci number using memoization. * Time Complexity: O(n) where n is the value of the input number. * Space Complexity: O(n) for storing the memoization map and the recursive call stack. */ public static int fibonacci(int num, Map<Integer, Integer> memo) { if (num <= 1){ return num; } if (memo.containsKey(num)) { return memo.get(num); } int res = fibonacci(num - 1, memo) + fibonacci(num - 2, memo); memo.put(num, res); return res; }

  • @Bickey_kr
    @Bickey_kr 2 дні тому

    bro whar are you, bc you are genius bro

  • @ValeriaGarciaHernandez
    @ValeriaGarciaHernandez 2 дні тому

    Very good video

  • @josephwaldron6542
    @josephwaldron6542 2 дні тому

    really good video

  • @Vano-zg5xu
    @Vano-zg5xu 2 дні тому

    So I'm very shocked because today Chat GPT-4 created this game in 10 seconds, even when I added some extra "easter eggs" like if the user presses "k", they can play a number guessing game. If they win this mini-game, they get an extra move in tic-tac-toe And Chat GPT-4 explained everything clearly. This code is very user-friendly, which is awesome.

  • @marcosdiogenes9380
    @marcosdiogenes9380 2 дні тому

    I just think it's so ridiculous that you have to pass an Arrays.asList() inside the arrayslist.

  • @MS-ib8xu
    @MS-ib8xu 2 дні тому

    Almost perfect video... when you first implement the lambda, you should have removed the Cat object to show the audience you don't need it.

  • @yyanooo
    @yyanooo 3 дні тому

    a four hour class i had summerized in 7 minutes. I'm so flabbergasted honestly 😭😭😭😭

  • @ghassenbenabdallah5899
    @ghassenbenabdallah5899 3 дні тому

    You and code bro saved my exam

  • @lootster
    @lootster 3 дні тому

    00:00 Creating and comparing linked lists and array lists in Java 01:31 ArrayList and LinkedList are virtually identical 03:02 ArrayList vs LinkedList in Java 04:38 Linked lists are a chain of nodes with pointers to the next node. 06:09 ArrayList and LinkedList have different ways of storing data. 07:36 Linked lists are better than ArrayLists for adding or removing elements. 09:00 Linked lists are faster for adding and removing elements, while arrays are faster for getting elements at a certain position. 10:25 Choose ArrayList for retrieving specific values, LinkedList for adding/removing elements.

  • @bullshitul
    @bullshitul 3 дні тому

    After watching lambdas explained by you i'm not sure if i want to pay 50$ just to give 50$ to someone who's doing it right or to benefit from a hole course given by someone who's doing it right. I only met once someone in your class mate. Ppl like you are in a special class!

  • @kristianradulescu287
    @kristianradulescu287 3 дні тому

    He really melted all my doubts about abstract classes and interfaces in only 7 minutes, that's masterclass explaining there

  • @programadordelassombras
    @programadordelassombras 3 дні тому

    at line 15 in Cata.java, what is public Cat() {catCount ++; }? I know the concept is closure (updating the state of closure), but it doesn't look like a function and it's not a class, although it is capitalized. Also, I'm assuming that this syntax implies execution upon every instance of cat based on the logic of Main.java. What is the concept and syntax called?

    • @wernerziegler5382
      @wernerziegler5382 11 годин тому

      This is the constructor. It is capitalized because its the classname. The constructor is called everytime you create an instance of the class with the new keyword. So everytime the catCount is increased by 1

  • @umabharathyts1998
    @umabharathyts1998 3 дні тому

    Thank you so much 🙏

  • @csabab.5689
    @csabab.5689 3 дні тому

    hi...can i ask you something? does it even make sense to learn programming because of artificial intelligence?

  • @Sixerking88
    @Sixerking88 4 дні тому

    But what if we take first fibonacii term = 0 Here you take zero fibonacii term = 0

  • @jerrygord3131
    @jerrygord3131 4 дні тому

    This was extremely helpful, thank you so much!

  • @umabharathyts1998
    @umabharathyts1998 4 дні тому

    I never understood this topic for years , I am having my interview tmrw this helped me a lot to understand it quickly.KEEP DOING THE GOOD WORK MAN !!!!❤

  • @aj0003prasad
    @aj0003prasad 4 дні тому

    Thank you so much. This tutorial really helped me to learn the concept

  • @redmundperrz7234
    @redmundperrz7234 4 дні тому

    Java still one of best programming language.its stand the test of time

  • @user-ml1dk5mv6f
    @user-ml1dk5mv6f 4 дні тому

    Thx u for multithreading teach. Before a few hours, I didn't understand that but now I watching this video, I totally understand that. this is slayyyyy!!

  • @arshiyanoroozi9554
    @arshiyanoroozi9554 4 дні тому

    exteremly essential stuff tnx lad

  • @XoTheeTitan-hu7wv
    @XoTheeTitan-hu7wv 4 дні тому

    Is java even still relevant 4 anything nowadays

  • @18kroger
    @18kroger 4 дні тому

    You nailed it. A crystal clear explanation.

  • @advaithbinu1053
    @advaithbinu1053 5 днів тому

    How do you import Gson?

  • @Davyyd1
    @Davyyd1 5 днів тому

    hey someone has a roadmap on this algoritms and in what order should i learn them

  • @alxrlja
    @alxrlja 5 днів тому

    and well, neeva doesn't exist anymore.

  • @tiagosilva9795
    @tiagosilva9795 5 днів тому

    What a great explanation! Thanks John!

  • @railroadman2k
    @railroadman2k 5 днів тому

    Thanks Java creators for this shot in the leg