What is Map and HashMap in Java

  Рет қаралды 35,347

Mukesh otwani

Mukesh otwani

Күн бұрын

Пікірлер: 35
@jesnathomas9307
@jesnathomas9307 3 жыл бұрын
Thank you Mukesh sir for explaining everything we needed to become a test engineer.
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Thanks Jesna, I am glad it helped you.
@sammenon6588
@sammenon6588 6 жыл бұрын
Awesome Video Sir✨ It was very easy to understand the map concept. Every other tutorial in KZbin I found it very complex to understand. You explained the concept in. Very simple way and to the point. Thanks🙏🏻
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Hi, Sam, I am happy to read your comment :) This always helps me to continue my work. Please keep learning.
@nitingupta82
@nitingupta82 6 жыл бұрын
Nice Explanation!! Thank you!!
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Thanks Gupta ji
@sagarsai6818
@sagarsai6818 3 жыл бұрын
Hi Mukesh We are not creating the objects for the interface but in this sessions List, set and MAP all are interfaces, so how to create an object? Example :HashMapob1=new Hashmap()-Hashmap
@jesnathomas9307
@jesnathomas9307 3 жыл бұрын
As per my understanding from his teaching, Hashmap is not an interface,it's a class which implements map interface.we can create objects in classes.hope this clears your doubt.
@TheNishi42
@TheNishi42 6 жыл бұрын
Is there any video or series focused on collections(Array, linked list and Hashmap)..
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Hi Romita, I have 3 videos on collection so far List kzbin.info/www/bejne/hXfNinRmltWMfbs Set kzbin.info/www/bejne/mXynZpeqj56gb7c Map kzbin.info/www/bejne/qICkdYBvbsmSnLs
@surwase1
@surwase1 6 жыл бұрын
Mukesh otwani - can you create a playlist of this
@ItsMeSimna
@ItsMeSimna 6 жыл бұрын
Thanks a lot!!! very helpful 🙂
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Thank you Simna I m Glad it helped u 😊
@vaibhavumale2975
@vaibhavumale2975 5 жыл бұрын
I took all the href links by using "FindElements" method and all the links contains product name and product price. I want to create a HashMap where i can enter productName as key and productPrice as value. Please help..
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Hi Vaibhav, really appreciate your effort. Try below approach 1- Store prouductname and product price in 2 list 2- Create hashmap of key as String and value as Integer 2- Run for loop which will take values from list and store them one by one in hashmap.
@varunsharma1383
@varunsharma1383 3 жыл бұрын
Hi mukesh otwani, thank you for such a wonderful session. Can you please tell the usage of hashmap in Selenium just like set and array list?
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Hi Varun, here is one of the example where we are using MAP. ChromeDriver driver=new ChromeDriver(); Map deviceMatrix=new HashMap(); deviceMatrix.put("width", 768); deviceMatrix.put("height", 1024 ); deviceMatrix.put("deviceScaleFactor", 100); deviceMatrix.put("mobile", true); driver.executeCdpCommand("Emulation.setDeviceMetricsOverride", deviceMatrix);
@riteshkumar6403
@riteshkumar6403 6 жыл бұрын
Very informative video.
@santooveluri7128
@santooveluri7128 6 жыл бұрын
Hi Mukes.., as you said , can you add one more example explaining hashmap in Selenium..
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Hi Santoo coming soon
@hatilaprogrammer999
@hatilaprogrammer999 2 жыл бұрын
Sir what is happening at the time of loop can you explain
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Hi Halitha, I will do one more video on this.
@rupaksahu6184
@rupaksahu6184 6 жыл бұрын
Hii.. Mukesh..Nice explanation!!... please make a video on browser notification..like how to handle allow and block.. notification.. Thanks a prior!
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Hi Rupak, This is the article link learn-automation.com/disable-chrome-notifications-selenium-webdriver/
@rupaksahu6184
@rupaksahu6184 6 жыл бұрын
Thanks.. Mukesh..
@jneeraj2011
@jneeraj2011 5 жыл бұрын
this is the link which you missed to put on the description..docs.oracle.com/javase/7/docs/api/java/util/HashMap.html
@muthuvel2390
@muthuvel2390 6 жыл бұрын
Hi mukesh, can you pls make video of enum concept and how to use in hash map
@nageenashaik8166
@nageenashaik8166 5 жыл бұрын
I want to take the table elements using hashmap.. .. As orangehrm admin page having username and name.. .. Using loop.. . I want to get the username for given name.. .. Can you please make one session for that
@Mukeshotwani
@Mukeshotwani 5 жыл бұрын
Sure Nageena will make video for same.
@nageenashaik8166
@nageenashaik8166 5 жыл бұрын
I want this using selenium with testNG and hashmap... I forgot to mention that
@ravikumarm3038
@ravikumarm3038 6 жыл бұрын
Hi Mukesh, nice video. Have a small Query. What i understood is Map does not allow the duplicates when Key and values are same. but how it responds when Key is same but value is different, like obj1.put("600", "Mukesh"); obj1.put("600", "Ravi"); When tried that scenario while practising i observed that showing the new given value, on what basis it retrieves it?
@ashishnitkb
@ashishnitkb 5 жыл бұрын
Ravikumar M it would override
@ravirai7054
@ravirai7054 6 жыл бұрын
Guess the explanation should be more meaningful when you include collections practical usage with selenium .. with findelements like stuff..Still good attempt..
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Hi Ravi Rai thanks for your comment. I will surely add more examples of Selenium but this video (based on the title) only talks about Map and Hashmap and usage that all. How to use and when to use I will be covering in the next videos.
@ravirai7054
@ravirai7054 6 жыл бұрын
Mukesh otwani great thanks..
How To Handle Exception In Java - Exception Handling In Java
23:25
Mukesh otwani
Рет қаралды 34 М.
What Is This Keyword In Java
16:53
Mukesh otwani
Рет қаралды 13 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
Set and HashSet in Java - Full Tutorial
20:43
Coding with John
Рет қаралды 238 М.
14.11 HashMap and HashTable in Java
8:44
Telusko
Рет қаралды 692 М.
14.5 LinkedList vs ArrayList in Java
9:16
Telusko
Рет қаралды 414 М.
What Is Method Overriding In Java- Runtime Polymorphism In Java
19:12
What is Wrapper Class In Java - Explanation with Examples
28:47
Mukesh otwani
Рет қаралды 42 М.