![Ranjith ramachandran](/img/default-banner.jpg)
- 13
- 2 729 417
Ranjith ramachandran
Приєднався 6 жов 2013
This channel provides explanation of various technical topics ( mainly in computer software/Java) in simple terms.
Will AI bots take your job? Are they smarter?
Chat GPT, Bard, Ernie, .. the list is growing and what they can do is amazing. They can code up websites and programs. Can they steal your job? Can we trust these sites like we trusted StackOverflow? #java #spring #chatgpt #bard #ernie #AI #bot #jobs #programming #solution #copypaste #stackoverflow #replacement #robot #rajini #robo #javaprogramming #job #code #downloadchatgpt #chatgptwindows #chatgptcoding #fypシ #fypシ゚viral #trending #india #interview #interviewquestions #artificialintelligence #interviewtips #uk #rajani #rajanifans
Переглядів: 1 177
Відео
Java Records: What are they?
Переглядів 2,5 тис.Рік тому
Sharing some interesting information regarding one of the newer features in Java - java records. I have tried to make the video concise and short. Please let me know your feedback. #java #programming #records #javarecords #pattern #deconstruction #interview #practical #apple #trending #new #javatutorial #easy #software #softwaredeveloper #softwareengineer #softwarecourses #macbookair #mac #info...
M2 Macbook Air unboxing with kids
Переглядів 2,4 тис.Рік тому
I am not a big fan of unboxing videos but had to do one for the kids. This was shot and edited by the kids. Planning to create new videos now that I do not have any excuses 😀🙏 Apple Macbooks are overpriced, but definitely the best in terms of hardware and apps. #apple #macbookair #m2 #unboxing #candid #funny
Factory Method Design Pattern in Java, tutorial
Переглядів 81 тис.8 років тому
Here I explain the factory method design pattern defined in GoF's famous design pattern book. There is a practical example that I hope will make the concept clear. If you have any comments, let me know. #macbookair #java #javainstitute #javaprogramming #javatutorial #javascript #easy #designpatternsinjava #design #beginners #beginner #easylearning #study #learnjava
Garbage collection in Java, with Animation and discussion of G1 GC
Переглядів 487 тис.9 років тому
Garbage collection has been an elusive topic, but it is important to understand its basics and switches. in this video I have tried to give you a technical overview of gc with animation, and also discussion about G1 gc, which is the latest in Java 8. Defaults : Java 7 - Parallel GC Java 8 - Parallel GC Java 9 - G1 GC #java #javaprogramming #javainstitute #javascript #javatutorial #apple #macboo...
Equals and hashcode contract
Переглядів 86 тис.9 років тому
What happens when equal objects do not have equal hashcode? The objects will cause bugs when used with hash-based collections. All hash based operations will depend on default hashcode implementation that will return unique hashcode for each object - and hence hashmap will not be able to look up keys, hashset will allow duplicates. In this video I demonstrate this. #java #macbookair #apple #eas...
HashTable vs HashMap vs Concurrent HashMap all kinds of Map implementations
Переглядів 208 тис.9 років тому
In JDK you have a lot of map implementations that you did not know even existed like EnumMap, IdentityHashMap and a lot of other implementations that are favorites of interviewers. In this video I am exploring various implementations available, and compare and contrast them with very good examples on WeakHashMap and ConcurrentHashmap. #hashmap #hashcode #java #javaprogramming #hashtable #macboo...
How HashMap works in Java? With Animation!! whats new in java8 tutorial
Переглядів 1 млн9 років тому
How does java hashmap work ? HashMap is one of the most popular java.util data structures. Its one of the associative array implementations, here I have explained its internals in simple terms using an animation. Java8 adds a bit of enhancement to HashMap by using a balanced tree when there is too much has collisions. I have covered that as well. Please leave your comments if you liked this. Al...
Singleton design pattern in Java - Part 2
Переглядів 63 тис.9 років тому
In this video I have explained how to fix flaws we saw in part1. Along with fixes there are discussions such as: Double checked locking, Whats wrong with double checked locking and how it is fixed, enum as Singleton and difference between singleton class and class with static methods. Please comment if you have any questions or points to discuss. Please subscribe if you like the content. #java ...
Singleton Design Pattern in Java - part I
Переглядів 138 тис.9 років тому
Singleton design pattern tutorial - Here I discuss why Singleton design pattern is not as simple as you thought.There are many ways you can break a singleton implementation and hence it is very hard to get right. Please think twice next time before you say that singleton design pattern is your favorite design pattern. In part 2 I will discuss how to address these and Singleton vs. class with st...
Design Patterns Introduction
Переглядів 18 тис.9 років тому
Introduction to design patterns - this video is a quick intro to GoF design patterns. Keep an eye on this channel for upcoming videos, there will be design patterns along with other interesting topics. Hit subscribe if you like the content you see.Thanks! #oo #java #javatutorial #gof #javatutorialforbeginners #javaprogramming #easy #behavioural #designpatternsinjava #fypシ #fypシ゚viral #fyp #obje...
About java.lang.String, why String is special in java - String tutorial
Переглядів 109 тис.9 років тому
java.lang.A string is a very special class in java. There are a lot of special characteristics associated with String. This makes it a favorite core java interview question topic. Here I discuss some interesting facts about java.lang.String #java #strings #string #class #classinjava #javaprogramming #javatutorial #javascript #easy #javainstitute #corejava #trending #fyp #fypシ゚viral #fypシ #trend...
JVM ( java virtual machine) architecture - tutorial
Переглядів 514 тис.9 років тому
In this video I tried to explore one of the popular core Java interview topics - Java virtual machine architecture - this provides you a fairly detailed walk through, also touches up on topics such as permgen and metaspace( jdk8) - I am going to post more topics like these, hit subscribe if you like what you see. #java #javatutorial #javainstitute #javainstitute #javaprogramming #easy #macbooka...
Watched this in 2024, both this one as well as JVM Architecture video. I can say that I will be willing to pay for this quality of content. Please keep on uploading more informative videos
Your videos are very thoughtful and to the point You should start making more of such content - Watching this in 2014
Garbage collection has been around since the 1960s. It was invented during the birth of Lisp. It is wrong to hint that Java pioneered garbage collection.
truly an amazing lecture about internals of JVM in just less than 30 minutes! Hats off to you Ranjith Sir. Your videos are so detailed and to the point. Loads of love and respect from BLR❤ Keep uploading more videos on Java, Spring, Sboot.. 🙏
Hi ranjith, Great video about GC, Learned a lot ,thanks. I know I'm late to the video.its been 8 years. Can you share some references in which you have referred?
Ranjith, could you please upload an update on this video ? JVM internals had changed a lot since JAVA 9
uploaded 9 years ago, still an golden explanation till date.
How to contact you
To prevent reflection problem when code moved at first place in test class, I modified constructor a bit as follow: private Singleton() { StackTraceElement[] stackTraceElements = Thread.currentThread().getStackTrace(); if(soleInstance != null || !stackTraceElements[1].getMethodName().equals("getInstance")){ throw new RuntimeException("Cannot create object. Please use getInstance()"); } System.out.println("Creating Object ...!"); }
Watching this in 2024, Amazing video.
Love your videos. Learn alot and new things keep up the good work thank you
Best explanation. Perfect
Thanks Ranjith for the detailed explanation. Appreciate it.
very good explanation dude, you are amazing :)
uwu
owo
Such a high quality introduction, thank you kindly!
Isn't low latency directly proportional to throughput? low latency means requests are served fast, which means a greater number of requests can be served in a given time, which in turn leads to high throughput? In this case how pause time acceptable for throughput?
ClassDefNotFoundException definition at 11:29. Thanks sir!
Outstanding ! Thank you, Sir.
Awesome Explanation ❤❤❤❤❤ Please Keep On Doing Good Work Why Exactly You Have Stopped Uploading Such A Great Work
Awesome Explanation ❤❤❤❤❤ Please Keep On Doing Good Work Why Exactly You Have Stopped Uploading Such A Great Work
nicely explained
Thanks Ranjith. Quite clear and in-depth explanation.
It's amazing tutorial and great explanation
Thanks!
Hey Man, I really appreciate your Hash Map like videos very much They are really very beautifully explained, can you please continue on such topics. Like most asked interview questions playlist.
Watching this in 2024. Amazing information on GC fundamentals. Thank you! 👍👍
Same here
16:00 is it compulsory always the the targeted object move from Eden--- survivor1---- survivo2 Is steps matters always?
The two survivor spaces are used to avoid fragmentation. Move to E->S1 and then from there to S2 - only one of them holds objects at a time.
Use of animation really helps understand the concept. Thank you so much sir 🙏
Now in 2024 and this is still relevant. Woow
Informative video. Please correct to cloneable interface instead of clonable
would you pls share your slides ??
still a masterpiece
02:30 Objects are created and collected based on their lifespan in the application. 07:15 Garbage collection involves marking reachable objects, sweeping unreachable objects, and compacting memory. 09:40 Java heap is divided into young and old generations for managing objects efficiently. 14:48 Survivor spaces in Java heap prevent the need for compacting step 17:11 Garbage collection in Java manages unreachable objects efficiently 21:33 Difference between responsiveness and throughput in Java applications 23:33 Concurrent collector runs concurrently with the application, while Parallel collector uses multiple CPUs for fast garbage collection. 28:08 G1 garbage collector in Java 7 & 8 divides the heap into regions for faster and minimal pauses. 30:20 Garbage collection in Java includes four different kinds of garbage collectors and how to use them. 35:08 Garbage collection in Java has no guarantee on when objects will get collected. 37:14 Garbage collection parameters in Java 41:39 Visual VM allows manual triggering of garbage collection. 43:46 Using direct buffer memory for managing Java Runtime memory Crafted by Merlin AI.
In order to use the "hash & (n-1)" optimization in place of a modulo operation, n needs to be a power of two. The video presenter kept saying "2 raised to n", which isn't correct.
Summary: Steps in garbage collection: mark, sweep, compact Division of heap into Young (Survivor spave from, Survivor space to) and Old generations Minor garbage collector runs mark and sweep in young generation Major garbage collector runs mark, sweep and compact across the heap Types of GC: Serial (single thread - stops app during MSC), Concurrent (runs CS along with application) and Parallel (multithread - stops app during MSC)
0:49 Edit .java -> compile .java -> run .class 3:33 JVM breakdown 4:14 Class loader: load (bootstrap (rt.jar), extension (jre/lib/ext), application (classes we write)) 6:59 Class loader: link (verify bytecode, prepare memory allocation for static variables, resolve nested references of a class) 10:02 Class loader: initialize (of static variables, static blocks) 11:09 ClassNotFoundException and ClassDefNotFoundException 12:38 Runtime Data area 13:01 Method Area / Permgen space / Metaspace (class data like static variables) 16:16 Heap (object data) 17:41 Program Counter Register: pointer to next instruction to be executed per thread 18:35 Java Stacks: stack frame of currently running method per thread 20:16 Native method stack: for running non-java methods called from java methods running in Java Stack (per thread) 24:09 Execution engine: GHIJ (Garbage Collector, Hotspot Profiler, Interpreter, JOT Compiler) 24:26 Interprets and executes the bytecode/instruction 25:52 JIT Compiler: Bytecodes that are repeated, called hotspots, are saved from re-interpretation. On the fly compiles them and make them ready for execution 26:27: Hotspot Profiler: graphically analyses the all the bytecodes and helps JIT compiler 27:36 Recap 26:57 Garbage Collector: cleans up unused classes, objects and memory areas.
Watching in 2023, its really super.
Why you have stopped making videos... We need more content like this in Java🙂
Thank you
Hi Ranjith. Glad to see you back. Happy to hear your voice again. Can you please give your LinkedIn URL in comment section so we can follow you. Expecting more content on Java 17 and higher versions and Microservices.
Thank you so much for coming back. I don't know where were you all these years. I was checking your channel like anything hopping for that you would come one day. Thank God ! At last you are back. Please do not disappear. Loved the way you explain Java. Thank you Sir and welcome back!
If the main thread has a timeout set,is it possible that the gc at times can cause the timeout?? As in as gc kicked in main thread couldn't finish in time
CDAC Madhura mam ke reference se kon kon aya hai bhai ?
Difference between -XX:NewSize and -XX:MaxNewSize is that, first one for initial space allocated for eden space and second one for max space allocated for eden space.
appreciate how you broke down the different types of GC algorithms. This is a must-watch for anyone looking to improve their understanding of memory management in Java.
Excellent video. Thanks a lot
Excellent one. Thanks.
One of the best videos with clear explanation. Helps me understand the basics. Thank you for making this video. Its really helpful! Good work...