Yes. In practical we use these many number of parameters in rarely. But it's good to know the details. Thanks for information
@priteshms3 жыл бұрын
You have been doing an amazing job in each and every videos.
@maverick-mma3 жыл бұрын
Nice video. Sometimes interviewer will also ask why param limit is same for primitive int and Object types because objects might have different number of member variables of different sizes? Answer is those are reference types (mostly 32-bit on 32-bit systems and on 64-bit systems (with CompressedOops)) which only hold addresses to objects allocated on heap. So they have the same limit as primitive int types.
@naveenautomationlabs3 жыл бұрын
Thanks for sharing
@rajshoudhri86983 жыл бұрын
Good to know and thanks for sharing..
@kankipatiramaraju49833 жыл бұрын
Thanks Naveen, pls continue this series. Really helpful for everyone..
@dondigidon16333 жыл бұрын
Good job! Thank you 🎉🎉🎉
@ramadeviv25293 жыл бұрын
Thank you so much Naveen . You are doing great job..
@m.smanoj46883 жыл бұрын
What a question man😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍
@silambarasans20283 жыл бұрын
Video is helpful. Good work naveen
@souvikchatterjee74003 жыл бұрын
Nice explaination Naveen
@poojakunder3 жыл бұрын
Good one🙂
@RohithEndroju3 жыл бұрын
Sir thank you very much you share a very good programing knowledge which helped a lot
@vinith23203 жыл бұрын
Good one naveen
@kavyasree27883 жыл бұрын
Superb...🔥
@crickettales65943 жыл бұрын
Nailed it!!
@nagasailakshmi17673 жыл бұрын
Thanks Naveen 👍
@ashishsenapati39013 жыл бұрын
Amazing
@jayabharathi83433 жыл бұрын
Thanks for the video Naveen..I have a question is the same applicable to argument constructors as well?
@thalapathyprasad95113 жыл бұрын
Nice 👍
@nijangouda48533 жыл бұрын
Thats great info,How abt any object we pass as parameters?
@shivareddynan449du3 жыл бұрын
Thanks 🙏
@diegojuarez80193 жыл бұрын
Naveens videos are great. I’m a big fan of his work. But I’m not sure who this interview question may be for. I know for an SDET or Test Automation engineer, this question will not prove if the candidate is a good tester or not. It’s like asking “if you know so much about planet earth, how many trees are there in the whole planet?” For SDETs and Test Automation engineers, while they may need strong technical skills, at the end of the day, they are testers and need to know how to break a system and write great robust test cases. I’m a Test Automation Architect for a big client in the Washington DC area and I cannot tell you how many testers we interview who think that technical skills are everything but will easily fail manual testing fundamentals. Would anyone disagree?
@sivaramapandian39233 жыл бұрын
good brooo
@vengateshm21223 жыл бұрын
Is the limit is platform independent? I mean does the limit vary for compiler or JRE versions?
@naveenautomationlabs3 жыл бұрын
No it's same for all platforms and JRE versions.
@anithaj163 жыл бұрын
Hi Naveen, Is there any limit for String and char?
@uditjain40063 жыл бұрын
Is their any limit in case of variable arguments?
@pengliu31733 жыл бұрын
in Scala there's same limit. we defined a case class then use it as object of dataset and output data. but we want to exceed this limit as we have so many columns so need to increase constructor parameters of case class. We don't find a good way for this except define nested object. any suggestion would appreciate
@manjunathp4193 жыл бұрын
Please do how to find largest palindrome in a given string
@mnsayeed9993 жыл бұрын
Are such questions really asked in interviews and if so, then what is the point of asking such questions?
@ChrisAthanas3 жыл бұрын
Trivia shows depth of knowledge in a very quick way You will only run into these issues after years on the job
@mayankbhardwaj10893 жыл бұрын
Sir, I have one question How to send OTP in Email only using concepts of core java??
@PavanKumar-tr9by3 жыл бұрын
What about arrays of double type
@asamakash87123 жыл бұрын
Sir Can we run a java program without main method
@pratyushanand7083 жыл бұрын
I guess it was possible till java6 ..but after java6 main method is required
@ChrisAthanas3 жыл бұрын
Yes with a static block Ie: { system.out.println(“hello”) }
@car91673 жыл бұрын
Asking this at a job interview is a stupid idea. Proves nothing! It doesn't show if a person is creative or if he/she can easily adapt to unknown/new things or if can learn new things with ease. I had a oracle certified java senior developer some 15 years ago in my team who couldn't imagine or create s..t.
@naveenautomationlabs3 жыл бұрын
This was asked in one of ocjp certification exam. Also IMHO, I don't think so it's a stupid question. It's good to know whats the maximum limit of method parameters and why is it. If tomorrow I want to develop my own compiler, or library I'll always consider this factor to limit the total number of method parameters.
@car91673 жыл бұрын
@@naveenautomationlabs So can't you learn about the limitation just trying when you need it? Does your life or whatever software integrity/reliability depends on it? It is not even recommended to have more than 2 arguments to a method and use encapsulation in a model or something. Sorry still a stupid question even for an exam
@naveenautomationlabs3 жыл бұрын
This is what we tried practically and mentioned this is not a good practice and if interviewer is asking this question during the interview or asked in any exam like OCJP or any online exam, better you dont say or write "this is a stupid question, I am not going to give this exam now". Rest is individual choice to know. Nothing wrong if you know the limit of function parameters in Java.
@car91673 жыл бұрын
@@naveenautomationlabs I was not debating the intention of the video but the impracticality of having such a question in an exam. There are many limitations we come across while coding, we don't have to spend time find and remember all the limitations possible in all areas that might have them just to know about them when need it. We do it as we go.
@naveenautomationlabs3 жыл бұрын
@Cristian its good to know such limitations, we cant control what people are asking at the time of interview either its stupid or good. When we try, then only we will get to know. All the limitations are having a reason behind this, why is it designed like this in terms of good/bad practices, memory optimization, code smells etc... if I were the king, I'd consider explicitly banning any class or method from having more than 5 type parameters.
@mericet393 жыл бұрын
I don't think anyone would ever ask this in an interview because it's not important to know. No decent developer would go much beyond 2 or 3 parameters, let alone 255.
@anandpurushottam44353 жыл бұрын
Sounds really stupid if someone really ask this questions in an interview.but good to know
@naveenautomationlabs3 жыл бұрын
it sounds but its not. It's always good to know the limits of parameters of a function.