00:06 The pillar of OOPs concept includes encapsulation, inheritance, polymorphism, and abstraction. 02:53 This subpart explains encapsulation, inheritance, and polymorphism in Java. 07:51 Dynamic polymorphism allows multiple implementations of the inventory service 10:25 Overriding static and private methods is not allowed 15:33 Using default methods in Java interfaces for flexible implementation 17:51 Accessing parent property and overriding default methods 22:25 The finalize method is not called if the system GC is done. 24:35 Proper implementation of equals and hashCode methods is necessary to avoid duplicates in collections. 29:25 Compile time exceptions can be handled at compile time 31:51 FileNotFound exception is a checked exception and not a compile time exception. 36:30 Delegating exception handling to next method caller 38:29 Understanding the order of exception hierarchy is important while handling exceptions in Java. 42:48 finally block can be stopped from executing 45:10 String objects can be created using the new keyword or string literal 49:54 String is immutable 52:13 String class is immutable in Java 56:16 String buffer and StringBuilder are mutable, while String is immutable. 58:38 Creating an immutable class: Setter method write only getter method 1:03:23 Demonstrating how to avoid modifying a Date object in Java 1:05:48 Handling mutability in Java objects 1:10:42 Using the clone method to create a separate copy of an object. 1:12:58 It is recommended to use char array instead of String for storing passwords. 1:17:21 Writing custom marker interfaces in Java 1:19:18 The difference between AR list and linked list 1:23:23 Using generics with lists helps in avoiding type cast issues. 1:25:33 Creating a custom AR list to disallow duplicates 1:30:36 Set implementation allows duplicate objects if equals and hashCode methods are not overridden for custom objects. 1:32:58 The contract between equals and hashCode methods determines if duplicate objects are allowed 1:37:42 Sorting objects based on ID and name using Comparable and Comparator 1:40:22 Creating Comparators in Java for sorting objects based on different attributes. 1:45:56 Explanation of custom sorting using comparator 1:48:16 Fail-fast and fail-safe iterators in Java 1:52:42 ConcurrentHashMap is used when parallel thread access and modification is required. 1:54:42 ConcurrentHashMap does not allow adding null keys or values and throws a null pointer exception immediately. 1:58:58 ConcurrentHashMap uses segment locking or bucket locking 2:01:14 ConcurrentHashMap is preferred over Hashtable due to its locking mechanism. 2:05:46 Hing Collision 2:07:54 Hash map internally uses linked list nodes. 2:12:03 Understanding TreeMap in Java 2:14:50 The compareTo() method compares two objects and returns -1, 0, or 1 based on the comparison result.
Thank you for great video. 99% teacher would cover these questions in 20 mins and most of us wouldn't understand anything and end up memorizing the answers. but you have properly explained each and every answer in great detail in 2 hours.
Such an awesome content and perfect timing. I was about to revise all the java basic to advance concept and here you go with the comprehensive and nice explanation of each n every concept. 🎉🎉
My Finding for overriding. /* * 1. You can replace return type of super method with sub-type of returned type. * * 2. Exception hierarchy: Exception Declaration are of overriding can have sub type or same time * * 3. Method parameter of overriding should be same type even sub types are not allowed. * * 4. You can omit the exception declaration in overriding method but it is not allowed * define different or super type for exception area of method header. * * 5. You cannot override the static or private method. If you attempt override static method * then it is called overer-hiding. The scope of the private method is limited to the class * where you define it is not available to any of sub-class hence we you attempt to override * this super class private method in sub class, then subclass consider it's own new method * there is no relation between these duplicate method definition. * * 6. Overriding method in subclass access specifier can be broader or same. Meaning if Super class * Overridden method has protected access specifier then sub-class overriding method * can have public specifier but cannot have private or default one. * * 7. Super class method which has default access specifier cannot be overriden by the subclasses in * Other package. Only subclass in same or sub package of super class can inherit it and can override * it. * * 8. You can use modifier in parameter list of overriding method even if those modifier is not used in * the parameter list of overridden method in super class * * 9. Order, Type and count of parameter list of overriding method in super class must strictly match with * parameter list of overridden method in sub class. */
I am 7 years experienced and find your videos very very useful. Your videos are really cutting edge. Please create some videos on latest features added in new releases of java after version 8. That will really help
I really appreciate your videos. Your lectures are useful for experienced candidates. They are explained very deeply and well. Please add more videos. There are multiple people who have channels on UA-cam, but yours stands out. You will be the next Javabrains
great video ! it would be helpful if these videos have time or question markers, to get to certain clips, or at least write the questions in the description, awesome channel@@Javatechie
If you've been developing in Java so many years, it is possible to know all of this and still flunk the interview questions. For example, I was wondering "Pillar of oops? WTF does THAT mean?" Then when you started to explain, I realised I knew all those concepts but just not the label "pillar of oops"
I think using ListIterator as well , We can able to modify List Object while iterating it as well. But only catch with ListIterator, Origin List should be created like List listObj = new ArrayList(). Meaning Origine List should not be fixed size List. For Example, For below mentioned Example, We will get java.lang.UnsupportedOperationException public class FailSafeIterationDemo { public static void main(String[] args) { List list = Arrays.asList("1","2"); ListIterator listIterator = list.listIterator(); while (listIterator.hasNext()) { String element = (String) listIterator.next(); listIterator.add("Z"); System.out.println(element); } System.out.println(list); } } But for another similar example, Mentioned as below , It will run perfectly fine without any Exception. public class FailSafeIterationDemo { public static void main(String[] args) { List list = new ArrayList(); list.add("1"); list.add("2"); ListIterator listIterator = list.listIterator(); while (listIterator.hasNext()) { String element = (String) listIterator.next(); listIterator.add("Z"); System.out.println(element); } System.out.println(list); } }
Thank you RockStar for the Amezing video. You are explaining all the concepts in very simple way and they are really understandable. Your videos are really helping lot of people to clear the interviews. Thanks once again. Keep helping us. 🥰😀
String s1 = "Hello"; s1.concat(" World!"); It will print "Hello" if we assign s1 = s1.concat(" World!"); ---> Hello World! similarly s1 = s1 + " World!"; it will print ---> Hello World! untill we assign variable after concatenarion it will not concatenate.
Hi Sir i really like the way you get into the topic in depth, can you please make videos on Data Structures with Java now every company is expecting to know in deep about this topic. I live in USA and this is one more nice video from you.. i generally wont write reviews for any videos but after watching yours couldn't able stop myself appreciating your hard work.. Keep up the great work Sir..
Can you also create a multithreading Interview QnA video ? Please. Also eagerly waiting for Spring Boot Part 7. Thank you so much for all your efforts !
giving an answer by coding it makes understanding better and deeply engrained by just watching. you sir are a diamond. but when i saw the boilerplate codes in your pojo i know you are an old-fashioned guy lol. also, comparator() is considered 'deprecated' since we are using streams api. do people still use that?
First of all thank you for your words and BTW I am not an old fashion guy 🤪. It's just interview questions where they will check your basic understanding that's why I have explained the comparator
Thanks a lot... I really appreciate your videos. Your lectures are useful for experienced candidates. Can help to share the questions PPT that would be very helpful.
what is the difference between the below 2 statements? both are printing same results.. System.out.println(s1.intern().hashCode() == s2.hashCode()); System.out.println(s1.hashCode() == s2.hashCode());
Your technique is excellent and easy to understand. Can you create a series on design patterns in Java? It is an important topic for practice and interviews. I couldn't find any design pattern series on your channel.
Awesome video.. please continue this java questions series as well as Spring-Microservices questions series. Is it possible to give questions in the description?
@@Javatechie thank you so much Basant. Please share the link because it will be easy to revise - both java and spring boot - Microservices questions. Kindly do complex Microservices scenario based questions.
Great videos and excellent presentation, it would be great if the video is split into parts based on questions, so that viewers can skip to the question to which they don't know the answer.
he's talking about splicing in clickable segments, so you can click a certain topic in the video time mark, overall the video is good thanks@@Javatechie
@@Javatechie nvm, you are going great, loved the way you structured the overall content, the best thing I liked is going through actual example at the same time.
you are wrong ,Concurrent Hashmap also contain ,null key value .first he checks and apply method putIfAbsent ,this method not throw nullPointerException. by the way nice Interview questions♥
Thanks alot for the wonderful video! I know you have provided alot of effor t in making this video. It is really helpful. Can I request for a separate pdf notes as well ? It will help us in going through just before an interview. BTW keep bringing more such videos and with notes if possible :)
Thank you for your interest in learning, buddy. It's a bit challenging for me to arrange my videos in a specific sequence since I've uploaded numerous videos covering different technologies. However, I can offer a workaround. Simply use the search bar to filter for videos that match your requirements, and you'll certainly find the results you need.
In Immutable class I tried for PhoneNumbers List.of("1234", "4567"); (or) Arrays.asList("1234", "4567"); also it's not allowed to modify. Thank You @Basant
Why can't we provide constructor for abstraction? Only by creating objects we can call getter and setter methods of item class why is this best approach?
Can you please make a video on role based authentication and authorisation and also jwt authentication and authorisation using spring boot and spring security 6 latest update
In role based authentication and authorisation I found some are deprecated like csrf(), AuthorizeHttpRequests(),and(),formLogin() in current update it is showing me for removal
I have asked a question to get employee namesand age>30 ,emp id between 50 and 70 I was able to answer first two conditions. Can you help me witg empid between 50and 70 elist. Stream().map( Employee::getnames).filter(x->x.getAge>30) Can you help with id condition
@@praticksharma4820 How to find the emi ids from 50 to 100 I have tried Elist.stream(). filter (x->x getId()>50 && getId()>100).forEach(s->syso(s)); Its not working can you help me
00:06 The pillar of OOPs concept includes encapsulation, inheritance, polymorphism, and abstraction.
02:53 This subpart explains encapsulation, inheritance, and polymorphism in Java.
07:51 Dynamic polymorphism allows multiple implementations of the inventory service
10:25 Overriding static and private methods is not allowed
15:33 Using default methods in Java interfaces for flexible implementation
17:51 Accessing parent property and overriding default methods
22:25 The finalize method is not called if the system GC is done.
24:35 Proper implementation of equals and hashCode methods is necessary to avoid duplicates in collections.
29:25 Compile time exceptions can be handled at compile time
31:51 FileNotFound exception is a checked exception and not a compile time exception.
36:30 Delegating exception handling to next method caller
38:29 Understanding the order of exception hierarchy is important while handling exceptions in Java.
42:48 finally block can be stopped from executing
45:10 String objects can be created using the new keyword or string literal
49:54 String is immutable
52:13 String class is immutable in Java
56:16 String buffer and StringBuilder are mutable, while String is immutable.
58:38 Creating an immutable class: Setter method write only getter method
1:03:23 Demonstrating how to avoid modifying a Date object in Java
1:05:48 Handling mutability in Java objects
1:10:42 Using the clone method to create a separate copy of an object.
1:12:58 It is recommended to use char array instead of String for storing passwords.
1:17:21 Writing custom marker interfaces in Java
1:19:18 The difference between AR list and linked list
1:23:23 Using generics with lists helps in avoiding type cast issues.
1:25:33 Creating a custom AR list to disallow duplicates
1:30:36 Set implementation allows duplicate objects if equals and hashCode methods are not overridden for custom objects.
1:32:58 The contract between equals and hashCode methods determines if duplicate objects are allowed
1:37:42 Sorting objects based on ID and name using Comparable and Comparator
1:40:22 Creating Comparators in Java for sorting objects based on different attributes.
1:45:56 Explanation of custom sorting using comparator
1:48:16 Fail-fast and fail-safe iterators in Java
1:52:42 ConcurrentHashMap is used when parallel thread access and modification is required.
1:54:42 ConcurrentHashMap does not allow adding null keys or values and throws a null pointer exception immediately.
1:58:58 ConcurrentHashMap uses segment locking or bucket locking
2:01:14 ConcurrentHashMap is preferred over Hashtable due to its locking mechanism.
2:05:46 Hing Collision
2:07:54 Hash map internally uses linked list nodes.
2:12:03 Understanding TreeMap in Java
2:14:50 The compareTo() method compares two objects and returns -1, 0, or 1 based on the comparison result.
Hats off to you buddy 👍
Hats off
❤
@s49243 Any tool used for this or manually typed😮
@@sanjay26031983chatgpt probably
Thank you for great video. 99% teacher would cover these questions in 20 mins and most of us wouldn't understand anything and end up memorizing the answers. but you have properly explained each and every answer in great detail in 2 hours.
Must watch interview questions video for java developers. Everything is explained practically. Thanks a lot.
God of Java. Wish I had this in previous month before my Mastercard interview, I would definitely cracked it.
No problem it happens i wish good luck for your upcoming interview
Because of break i don't have confidence but after watching this vedio slowly recovering 😊,thank you so much Basanth .
Rockstar is making some noice in the market ❤
😜😜
Yes rockstar making nice video
@@Javatechie I have 3.5 years of experience as Java developer. Is it applicable for me?
Yes buddy
@@Javatechie thanks 🙏 brother and is this enough or is there a continuation videos?
Such an awesome content and perfect timing. I was about to revise all the java basic to advance concept and here you go with the comprehensive and nice explanation of each n every concept. 🎉🎉
My Finding for overriding.
/*
* 1. You can replace return type of super method with sub-type of returned type.
*
* 2. Exception hierarchy: Exception Declaration are of overriding can have sub type or same time
*
* 3. Method parameter of overriding should be same type even sub types are not allowed.
*
* 4. You can omit the exception declaration in overriding method but it is not allowed
* define different or super type for exception area of method header.
*
* 5. You cannot override the static or private method. If you attempt override static method
* then it is called overer-hiding. The scope of the private method is limited to the class
* where you define it is not available to any of sub-class hence we you attempt to override
* this super class private method in sub class, then subclass consider it's own new method
* there is no relation between these duplicate method definition.
*
* 6. Overriding method in subclass access specifier can be broader or same. Meaning if Super class
* Overridden method has protected access specifier then sub-class overriding method
* can have public specifier but cannot have private or default one.
*
* 7. Super class method which has default access specifier cannot be overriden by the subclasses in
* Other package. Only subclass in same or sub package of super class can inherit it and can override
* it.
*
* 8. You can use modifier in parameter list of overriding method even if those modifier is not used in
* the parameter list of overridden method in super class
*
* 9. Order, Type and count of parameter list of overriding method in super class must strictly match with
* parameter list of overridden method in sub class.
*/
I am 7 years experienced and find your videos very very useful. Your videos are really cutting edge. Please create some videos on latest features added in new releases of java after version 8. That will really help
Sure buddy will do that
Boss is Back.
I really appreciate your videos. Your lectures are useful for experienced candidates. They are explained very deeply and well. Please add more videos. There are multiple people who have channels on UA-cam, but yours stands out. You will be the next Javabrains
Thank you so much for appreciating it buddy 🤗. Keep learning 👍
great video ! it would be helpful if these videos have time or question markers, to get to certain clips, or at least write the questions in the description, awesome channel@@Javatechie
If you've been developing in Java so many years, it is possible to know all of this and still flunk the interview questions. For example, I was wondering "Pillar of oops? WTF does THAT mean?" Then when you started to explain, I realised I knew all those concepts but just not the label "pillar of oops"
Pillars of oops or key component of oops this kind of word usually interviewer used
I think using ListIterator as well , We can able to modify List Object while iterating it as well. But only catch with ListIterator, Origin List should be created like List listObj = new ArrayList(). Meaning Origine List should not be fixed size List.
For Example, For below mentioned Example, We will get java.lang.UnsupportedOperationException
public class FailSafeIterationDemo {
public static void main(String[] args) {
List list = Arrays.asList("1","2");
ListIterator listIterator = list.listIterator();
while (listIterator.hasNext()) {
String element = (String) listIterator.next();
listIterator.add("Z");
System.out.println(element);
}
System.out.println(list);
}
}
But for another similar example, Mentioned as below , It will run perfectly fine without any Exception.
public class FailSafeIterationDemo {
public static void main(String[] args) {
List list = new ArrayList();
list.add("1");
list.add("2");
ListIterator listIterator = list.listIterator();
while (listIterator.hasNext()) {
String element = (String) listIterator.next();
listIterator.add("Z");
System.out.println(element);
}
System.out.println(list);
}
}
Thank you RockStar for the Amezing video. You are explaining all the concepts in very simple way and they are really understandable. Your videos are really helping lot of people to clear the interviews. Thanks once again. Keep helping us. 🥰😀
Thank you for appreciating my work buddy
Definitely a must watch video, thanks a lot.
String s1 = "Hello";
s1.concat(" World!");
It will print "Hello" if we assign s1 = s1.concat(" World!"); ---> Hello World! similarly s1 = s1 + " World!"; it will print ---> Hello World! untill we assign variable after concatenarion it will not concatenate.
Hi Sir i really like the way you get into the topic in depth, can you please make videos on Data Structures with Java now every company is expecting to know in deep about this topic. I live in USA and this is one more nice video from you.. i generally wont write reviews for any videos but after watching yours couldn't able stop myself appreciating your hard work.. Keep up the great work Sir..
Thank you so much for this content before interview, i go though this video mostly 90% are the same questions great work
This is very much needed video. Thankyou very much sir!!
Most informative practical video of core java interviews
these are the best interview questions on java
What a timing man! This will really help me i. Preparation, thanks! Your content is very deep and practical!!
Waw, awaited video.
Thank you so much 🙏❤
No words to thank you sir.!! 🙏
Can you also create a multithreading Interview QnA video ? Please. Also eagerly waiting for Spring Boot Part 7. Thank you so much for all your efforts !
Thank you for covering most of the topics...
Excellent content, thanks for providing them. Really helpful for interview preparation 🙂
Great Tutorial thanks Java Techie
giving an answer by coding it makes understanding better and deeply engrained by just watching. you sir are a diamond. but when i saw the boilerplate codes in your pojo i know you are an old-fashioned guy lol. also, comparator() is considered 'deprecated' since we are using streams api. do people still use that?
First of all thank you for your words and BTW I am not an old fashion guy 🤪. It's just interview questions where they will check your basic understanding that's why I have explained the comparator
You earned my subscription because of this video.
Yes Basant. Cover With Scenario all topic
30:38 Compile time exceptions is compiler forcing to developer to handle the exceptions so its called compile time exceptions.
Yes exactly
Thanks a lot... I really appreciate your videos. Your lectures are useful for experienced candidates. Can help to share the questions PPT that would be very helpful.
Thank you sir it's very helpful for beginner to experience person.
As usual the bestest content we can found here☺️
Please make interview series on microservices and thank you for all the great work🎉
Yes buddy as part of spring boot interview Q&A only i will continue.
After long time happy to see sir❤
You are a gem , Sir . Hope to meet you .
It's incredible.Loved your videos.Please implement Fusion auth in Spring Boot.
Not aware about fusion auth will definitely check and update
what is the difference between the below 2 statements? both are printing same results..
System.out.println(s1.intern().hashCode() == s2.hashCode());
System.out.println(s1.hashCode() == s2.hashCode());
Could you please first try to understand what the intern method does ?
Your technique is excellent and easy to understand. Can you create a series on design patterns in Java? It is an important topic for practice and interviews. I couldn't find any design pattern series on your channel.
Sure will plan it
Awesome video.. please continue this java questions series as well as Spring-Microservices questions series. Is it possible to give questions in the description?
Yes definitely i can but i was thinking to share these questions as a separate medium Blog
@@Javatechie thank you so much Basant. Please share the link because it will be easy to revise - both java and spring boot - Microservices questions. Kindly do complex Microservices scenario based questions.
Really very helpful bhaii.. thank you so much❤
Simple I would say superb explanation
Great videos and excellent presentation, it would be great if the video is split into parts based on questions, so that viewers can skip to the question to which they don't know the answer.
People suggest for long videos buddy that's why I uploaded it
he's talking about splicing in clickable segments, so you can click a certain topic in the video time mark, overall the video is good thanks@@Javatechie
@@orangefield2308 yeah thanks buddy 👍 got it sure i will add timestamps so that it will be segment wise clickable
really helpful and in depth :)
Wonderful explained
One thing to notice here, as string having immutability nature makes it Thread safe.
56:00 Immutable objects are by default thread-safe
Very helpful, thank you sir
Appreciate this man's efforts. I regularly follow his videos and he makes everything so simple and easy to understand. Thankyou JavaTechie. :D
One correction, when you explained String vs StringBuffer vs StringBuilder, mistakenly String was mentioned as Not-Thread-Safe, but it is.
Yes my bad 😔
@@Javatechie nvm, you are going great, loved the way you structured the overall content, the best thing I liked is going through actual example at the same time.
Sir how many weeks/months it takes to master java8 and array/string questions to clear written test of service based companies
One or 2 weeks is enough, i have a few questions already shared in the group just have a look in my channel
Please make a Vedio on SQL interview questions and answers for 2 years of experience
Thanks for detailed expalnation.
String is Thread-safe inherently.. In your picture it says not thread-safe @55:29
Yup, was about to write that but you beat me to it. By 10 months... 😊
Such a wonderful content....
Hi Basant, waiting for your new videous.Last week we have not seen any new video. Hope this week.😊Appreciate your efforts
Hello buddy thanks for your interest 😊. Actually I was on vacation and returned today so hopefully next weekend i will start uploading content
Thanks Basant. Appreciate your time. God bless you. 🙂👍🙏
Hi Sir,
Please create video on java LTS latest features as well. Since lot of interviewers expect nowadays.
you are wrong ,Concurrent Hashmap also contain ,null key value .first he checks and apply method putIfAbsent ,this method not throw nullPointerException. by the way nice Interview questions♥
Thanks buddy 😊. I will check and update you
Thanks for the video brother it helps lot
Thank you so much brother keep learning 😃
Thanks alot for the wonderful video! I know you have provided alot of effor t in making this video. It is really helpful. Can I request for a separate pdf notes as well ? It will help us in going through just before an interview. BTW keep bringing more such videos and with notes if possible :)
Again great video , Thanks a lot
Amazing tutorial
Excellent
55:34 - As strings are immutable, It is Thread safe. In the comparison table, String is mentioned as Not Thread Safe. Please correct me if I am wrong.
You are correct and it's my mistake.
@@Javatechie Thanks. Overall, This playlist is amazing. Even with 5 years of exp in java, such videos are needed to brush-up. Thanks a lot.
It's Very helpful content
Could you also please create a video on ThreadLocal?
Great job 👏
There is so many videos in your UA-cam.. Please put one video that how to watch orderly for a fresher..
Thank you for your interest in learning, buddy. It's a bit challenging for me to arrange my videos in a specific sequence since I've uploaded numerous videos covering different technologies. However, I can offer a workaround. Simply use the search bar to filter for videos that match your requirements, and you'll certainly find the results you need.
Please put core java interview questions for fresher level only..
Sir Thanks for the video ,in concurrent hash map what will happen when same bucket locked and it is trying to add the data in the same bucket ?
In Immutable class I tried for PhoneNumbers List.of("1234", "4567"); (or) Arrays.asList("1234", "4567"); also it's not allowed to modify.
Thank You @Basant
Thank you
Why can't we provide constructor for abstraction? Only by creating objects we can call getter and setter methods of item class why is this best approach?
Hi Basant, where is the link of github repo? i cant find it in description, could you please share it?
I might have missed the update . will update and notify
@@Javatechie Thank you Sir. Your contents are very helpful
String is threadsafe right as it's immutable but the slide shows it's not threadsafe 55:08
Yes agree it's my mistake
very good video
One more- We can overload static method. Right.
Yes we can
finally!!
Can you explain why did you mentioned string is not thread safe?
Is your playlist is enough for Capgemini interview sir
Yes it's more than enough for any company irrespective of service or product base only for core Java Q&A
@@Javatechie Thank you sir , and for Java interview coding do you have a playlist
Yes please filter with keyword " programming " you will get a couple of videos in my channel
Can u also create aws related questions in similar way that would be very helful....
Very nice
Can you please make a video on role based authentication and authorisation and also jwt authentication and authorisation using spring boot and spring security 6 latest update
Please be updated with channel your requested video already available ua-cam.com/video/NcLtLZqGu2M/v-deo.html
In role based authentication and authorisation I found some are deprecated like csrf(), AuthorizeHttpRequests(),and(),formLogin() in current update it is showing me for removal
I filtered UA-cam according to this month on role based authentication and authorisation i didn't find appropriate video on it, kindly help me
Here is the update change log ua-cam.com/video/YnhbTlCCVLc/v-deo.html
After preparing from this lecture, will I be able to clear my tech round?????
Strings are safe for multithreading, in your video at 55:45, it is shown that they are not thread safe, please correct it
Thank u
For such more videos: youtube.com/@JavaWedsPython?si=0I6KI7AaWX7S0Ltz
At 55:05 Correction - String is thread safe.
Mu bad buddy 😞
Osm
Hi basant, if possible can your please make notes of it and please share ppt
Sir try block execute like if else
No purpose is completely different
Ok sir
please add on concurrency interview questions in java
@Java Techie Why can't you create questions for unit testing
when catch block is not executing when exception is raised and return 3 only why sir
Say --> Compilation error ❌ Crying ✅
I have asked a question to get employee namesand age>30 ,emp id between 50 and 70
I was able to answer first two conditions. Can you help me witg empid between 50and 70
elist. Stream().map( Employee::getnames).filter(x->x.getAge>30)
Can you help with id condition
First filter it then map it
filter (x->x.salary>30 && x.salaryy.name)
@@praticksharma4820 condition between 50 and 70 is for emp ida
@@praticksharma4820 How to find the emi ids from 50 to 100
I have tried
Elist.stream(). filter (x->x getId()>50 && getId()>100).forEach(s->syso(s));
Its not working can you help me
2:03:45 does Hashmap Internally uses Array of LinkedList ?
It’s linked list
I mean those 16 memory buckets is Array ? Or Different DS ?
@@Coders_World each bucket 🪣 point to a singley linked list
55:59 isn't string is also thread safe? on the slide u r showing string is not thread safe!
It’s my mistake buddy please ignore
Bro make tutorial to push two project in same github repo