Tricky Interview Question: Maximum Number of Method Parameters Allowed in

  Рет қаралды 24,921

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

Пікірлер: 46
@saravanankaliyamoorthy9479
@saravanankaliyamoorthy9479 3 жыл бұрын
Yes. In practical we use these many number of parameters in rarely. But it's good to know the details. Thanks for information
@priteshms
@priteshms 3 жыл бұрын
You have been doing an amazing job in each and every videos.
@maverick-mma
@maverick-mma 3 жыл бұрын
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.
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Thanks for sharing
@rajshoudhri8698
@rajshoudhri8698 3 жыл бұрын
Good to know and thanks for sharing..
@kankipatiramaraju4983
@kankipatiramaraju4983 3 жыл бұрын
Thanks Naveen, pls continue this series. Really helpful for everyone..
@dondigidon1633
@dondigidon1633 3 жыл бұрын
Good job! Thank you 🎉🎉🎉
@ramadeviv2529
@ramadeviv2529 3 жыл бұрын
Thank you so much Naveen . You are doing great job..
@m.smanoj4688
@m.smanoj4688 3 жыл бұрын
What a question man😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍
@silambarasans2028
@silambarasans2028 3 жыл бұрын
Video is helpful. Good work naveen
@souvikchatterjee7400
@souvikchatterjee7400 3 жыл бұрын
Nice explaination Naveen
@poojakunder
@poojakunder 3 жыл бұрын
Good one🙂
@RohithEndroju
@RohithEndroju 3 жыл бұрын
Sir thank you very much you share a very good programing knowledge which helped a lot
@vinith2320
@vinith2320 3 жыл бұрын
Good one naveen
@kavyasree2788
@kavyasree2788 3 жыл бұрын
Superb...🔥
@crickettales6594
@crickettales6594 3 жыл бұрын
Nailed it!!
@nagasailakshmi1767
@nagasailakshmi1767 3 жыл бұрын
Thanks Naveen 👍
@ashishsenapati3901
@ashishsenapati3901 3 жыл бұрын
Amazing
@jayabharathi8343
@jayabharathi8343 3 жыл бұрын
Thanks for the video Naveen..I have a question is the same applicable to argument constructors as well?
@thalapathyprasad9511
@thalapathyprasad9511 3 жыл бұрын
Nice 👍
@nijangouda4853
@nijangouda4853 3 жыл бұрын
Thats great info,How abt any object we pass as parameters?
@shivareddynan449du
@shivareddynan449du 3 жыл бұрын
Thanks 🙏
@diegojuarez8019
@diegojuarez8019 3 жыл бұрын
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?
@sivaramapandian3923
@sivaramapandian3923 3 жыл бұрын
good brooo
@vengateshm2122
@vengateshm2122 3 жыл бұрын
Is the limit is platform independent? I mean does the limit vary for compiler or JRE versions?
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
No it's same for all platforms and JRE versions.
@anithaj16
@anithaj16 3 жыл бұрын
Hi Naveen, Is there any limit for String and char?
@uditjain4006
@uditjain4006 3 жыл бұрын
Is their any limit in case of variable arguments?
@pengliu3173
@pengliu3173 3 жыл бұрын
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
@manjunathp419
@manjunathp419 3 жыл бұрын
Please do how to find largest palindrome in a given string
@mnsayeed999
@mnsayeed999 3 жыл бұрын
Are such questions really asked in interviews and if so, then what is the point of asking such questions?
@ChrisAthanas
@ChrisAthanas 3 жыл бұрын
Trivia shows depth of knowledge in a very quick way You will only run into these issues after years on the job
@mayankbhardwaj1089
@mayankbhardwaj1089 3 жыл бұрын
Sir, I have one question How to send OTP in Email only using concepts of core java??
@PavanKumar-tr9by
@PavanKumar-tr9by 3 жыл бұрын
What about arrays of double type
@asamakash8712
@asamakash8712 3 жыл бұрын
Sir Can we run a java program without main method
@pratyushanand708
@pratyushanand708 3 жыл бұрын
I guess it was possible till java6 ..but after java6 main method is required
@ChrisAthanas
@ChrisAthanas 3 жыл бұрын
Yes with a static block Ie: { system.out.println(“hello”) }
@car9167
@car9167 3 жыл бұрын
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.
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
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.
@car9167
@car9167 3 жыл бұрын
@@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
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
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.
@car9167
@car9167 3 жыл бұрын
@@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.
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
@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.
@mericet39
@mericet39 3 жыл бұрын
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.
@anandpurushottam4435
@anandpurushottam4435 3 жыл бұрын
Sounds really stupid if someone really ask this questions in an interview.but good to know
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
it sounds but its not. It's always good to know the limits of parameters of a function.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Star Pattern Logic - Part 1 - By Naveen AutomationLabs
22:34
Naveen AutomationLabs
Рет қаралды 64 М.
Can we overload a main() method in Java? || Java Interview Question
13:24
Naveen AutomationLabs
Рет қаралды 61 М.
Design Tic Tac Toe: Low Level Design Coding Interview Question
15:35
Find Duplicate Elements in An Array || Important Java Interview Questions
22:36
Naveen AutomationLabs
Рет қаралды 53 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 901 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,8 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН