No video

Wrapper class in java || Java questions and answers for interview || Boolean

  Рет қаралды 40,377

Selenium Express

Selenium Express

6 жыл бұрын

In this video, we will cover few interview questions on wrapper classes in java.Specifically, we are going to talk about Boolean class here.Like most of the other wrapper classes, the Boolean class also have two different constructor which takes strings and boolean values as an argument, respectively.
But as the Boolean class constructor which accept a string as an argument is case sensitive, It creates confusion for us.So let’s clear this out.So today in this "java questions and answers for interview” series our topic will be the Boolean class constructor and we will cover various possible questions on “java wrapper classes”(Boolean class").
subscribe to my channel by clicking on the link below.
/ @seleniumexpress
Stay tuned and like my Facebook page for more.
/ seleniumexpress
Music :
-----------
credits : -
(intro)
1)
Adventures by A Himitsu / a-himitsu
Creative Commons - Attribution 3.0 Unported- CC BY 3.0
creativecommons....
Music released by Argofox • A Himitsu - Adventures...
Music provided by Audio Library • Adventures - A Himitsu...
-----
intro template :
wkzfaq.info

Пікірлер: 26
@dilipnathrani8014
@dilipnathrani8014 6 жыл бұрын
Why we need wrapper class?????
@SeleniumExpress
@SeleniumExpress 6 жыл бұрын
Hi Dilip, Java has primitive types , eg : int,float ,double,boolean etc. These are not objects. So they cannot be referenced. 1) To convert simple data types into objects, we need wrapper classes.for an example, int i = 10; here i is not an object, But when we do Integer i1 = new Integer(i); here i1 is an object which value is 10; and here Integer is a wrapper class. 2) Generics don’t allow us to use primitive as the type parameters.for an example in the collection when we use a generic type like below ArrayList a = new ArrayList(); Here to make your ArrayList type safe, you are using generic and specifying your ArrayList is only going to store integer value and to represent it you are using of Integer class(Which is a wrapper class, you can’t use primitive data types here, for an example Arraylist a = new ArrayList() // compile time error ) 3) All your wrapper classes are immutable. Like string,all wrapper classes, cache their hashcode and that’s why they are great candidates as a key in the map where frequent hashcode calculation is needed.ToKnow more about it, check the below link kzfaq.info/get/bejne/rd-kntxz3ZqueZc.html 4) Using wrapper classes we can convert Strings into its respective data types (known as parsing operations), here methods of type parseXXX() are used. For an example byte b = Byte.parseByte("10”); System.out.println(b);//Output : 10 int i = Integer.parseInt("123"); System.out.println(i); //Output : 123 There are so many other benefits that we get from wrapper classes as well.I will cover it in my upcoming tutorial. Thank you,for posting a comment.Have a nice day!!
@VC-kj9yx
@VC-kj9yx 6 жыл бұрын
Selenium express this is one of the best answers related to usage of Wrapper classes.Your video tutorials are awesome.I hope you will continue this great work
@vishalgaikwad873
@vishalgaikwad873 6 жыл бұрын
great effort by sir
@svetlanamazhaykina6918
@svetlanamazhaykina6918 2 ай бұрын
Thanks for your work! Well done!
@supriyajadhav5966
@supriyajadhav5966 6 жыл бұрын
Hi, I saw few videos from this channel. It was really nice. You are explaining topics in proper and easy way. Keep making such videos. Thanks.
@SeleniumExpress
@SeleniumExpress 6 жыл бұрын
Hi Supriya, Your feedback is motivating. Thank you for posting a comment.
@suyashmetkari3724
@suyashmetkari3724 11 ай бұрын
Big fan
@sriramannadurai9287
@sriramannadurai9287 2 жыл бұрын
very good explanation but the thing is it has nothing to do with Wrapper class :'-(
@gowthamisasanapuri9980
@gowthamisasanapuri9980 3 жыл бұрын
Thank you for the explanation...it is helpful...
@meetsaurabhtiwari
@meetsaurabhtiwari 5 жыл бұрын
Abhilash please make video on spring security and aop & on hibernate. Waiting
@Dipenparmar12
@Dipenparmar12 6 жыл бұрын
Nice one.....
@banisettiatchuta4335
@banisettiatchuta4335 5 жыл бұрын
Thanks bro for good explanation...
@sasireka7974
@sasireka7974 4 жыл бұрын
Roles and responsibility of 4yrs exp in automation testing How to prepare automtion test strategy and test plan
@sasireka7974
@sasireka7974 4 жыл бұрын
How to explain cucumber framework in interview with step by step
@naveenscorp09
@naveenscorp09 4 жыл бұрын
Why the name of this video Wrapper class? Doesn't make any sense. Atlest demonstrate what are rapper class, in what situation to use them
@anushakandakatla9105
@anushakandakatla9105 4 жыл бұрын
Why wrapper classes are immutable
@vishalgaikwad873
@vishalgaikwad873 6 жыл бұрын
watching video is not enough to do the program, ask query and solve the error is more important.
@SeleniumExpress
@SeleniumExpress 6 жыл бұрын
you are right, Vishal !!
@vishalgaikwad873
@vishalgaikwad873 6 жыл бұрын
sir , two key with same hash code is possible to store in same bucket.. And Two equivalent object should be placed into same bucket. what is the meaning of it ????
@vishalgaikwad873
@vishalgaikwad873 6 жыл бұрын
this is my today interview question, plz explain it
@SeleniumExpress
@SeleniumExpress 6 жыл бұрын
I think I have already answered your question somewhere else. I remember you did put the same question. Let me know if you want a replay again.
@tusharbhawsar9512
@tusharbhawsar9512 2 жыл бұрын
Its false instead of flase
@ansumansworld
@ansumansworld 6 жыл бұрын
Toh shirt ta dekhiba Ku asithili Dekhilini
@SeleniumExpress
@SeleniumExpress 6 жыл бұрын
Lol.Trap re padigalu..
@bCool-sl5cy
@bCool-sl5cy 2 жыл бұрын
Do you really need to make a video about this? Why not just write that new Boolean(String value) returns true if the value of value is equal to "true" *context insensitive" and false otherwise?
Java coding interview question || Varargs in java || case 2
10:31
Selenium Express
Рет қаралды 9 М.
لقد سرقت حلوى القطن بشكل خفي لأصنع مصاصة🤫😎
00:33
Cool Tool SHORTS Arabic
Рет қаралды 30 МЛН
Java Wrapper Classes || Objectives of Wrapper classes || by Durga Sir
14:22
Durga Software Solutions
Рет қаралды 42 М.
Why string is immutable in java || The 4 reasons you must know || part 1
20:53
What is Wrapper Class In Java - Explanation with Examples
28:47
Mukesh otwani
Рет қаралды 42 М.
Top 30 JAVA Interview Questions and Answers for Beginners
1:25:45
Interview Happy
Рет қаралды 14 М.
Top 20 Constructor Interview Questions and Answers in Java | SDET Interview | Java Interview
29:10
Generics In Java - Full Simple Tutorial
17:34
Coding with John
Рет қаралды 1 МЛН