Tricky Interview Question: Maximum Number of Method Parameters Allowed in

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

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

#javainterviewquestions #javatrickyinterview #naveenautomationlabs
In this video, I have explained what is the Maximum Number of Parameters Allowed in a Method in #Java
Refer this Oracle official doc: docs.oracle.co...
~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Naveen AutomationLabs Paid Courses:
Java & Selenium:
naveenautomatio...
Java & API +POSTMAN + RestAssured + HttpClient:
naveenautomatio...

Пікірлер: 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
@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
@priteshms
@priteshms 3 жыл бұрын
You have been doing an amazing job in each and every videos.
@kankipatiramaraju4983
@kankipatiramaraju4983 3 жыл бұрын
Thanks Naveen, pls continue this series. Really helpful for everyone..
@rajshoudhri8698
@rajshoudhri8698 3 жыл бұрын
Good to know and thanks for sharing..
@ramadeviv2529
@ramadeviv2529 3 жыл бұрын
Thank you so much Naveen . You are doing great job..
@RohithEndroju
@RohithEndroju 3 жыл бұрын
Sir thank you very much you share a very good programing knowledge which helped a lot
@m.smanoj4688
@m.smanoj4688 3 жыл бұрын
What a question man😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍
@silambarasans2028
@silambarasans2028 3 жыл бұрын
Video is helpful. Good work naveen
@dondigidon1633
@dondigidon1633 3 жыл бұрын
Good job! Thank you 🎉🎉🎉
@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?
@souvikchatterjee7400
@souvikchatterjee7400 3 жыл бұрын
Nice explaination Naveen
@jayabharathi8343
@jayabharathi8343 3 жыл бұрын
Thanks for the video Naveen..I have a question is the same applicable to argument constructors as well?
@poojakunder
@poojakunder 3 жыл бұрын
Good one🙂
@nagasailakshmi1767
@nagasailakshmi1767 3 жыл бұрын
Thanks Naveen 👍
@vinith2320
@vinith2320 3 жыл бұрын
Good one naveen
@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
@crickettales6594
@crickettales6594 3 жыл бұрын
Nailed it!!
@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.
@shivareddynan449du
@shivareddynan449du 3 жыл бұрын
Thanks 🙏
@kavyasree2788
@kavyasree2788 3 жыл бұрын
Superb...🔥
@ashishsenapati3901
@ashishsenapati3901 3 жыл бұрын
Amazing
@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?
@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
@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
@thalapathyprasad9511
@thalapathyprasad9511 3 жыл бұрын
Nice 👍
@nijangouda4853
@nijangouda4853 3 жыл бұрын
Thats great info,How abt any object we pass as parameters?
@sivaramapandian3923
@sivaramapandian3923 3 жыл бұрын
good brooo
@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.
@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.
@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.
Find Duplicate Elements in An Array || Important Java Interview Questions
22:36
Naveen AutomationLabs
Рет қаралды 52 М.
Wait for it 😂
00:32
ILYA BORZOV
Рет қаралды 6 МЛН
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 7 МЛН
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 11 МЛН
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 34 МЛН
Star Pattern Logic - Part 1 - By Naveen AutomationLabs
22:34
Naveen AutomationLabs
Рет қаралды 64 М.
The Async Await Episode I Promised
12:04
Fireship
Рет қаралды 1,1 МЛН
Go Has Exceptions??
16:58
ThePrimeTime
Рет қаралды 70 М.
Can we overload a main() method in Java? || Java Interview Question
13:24
Naveen AutomationLabs
Рет қаралды 60 М.
9. Java Memory Management and Garbage Collection in Depth
48:48
Concept && Coding - by Shrayansh
Рет қаралды 89 М.
Why password should be stored in char array char[] instead of string?
9:19
Naveen AutomationLabs
Рет қаралды 51 М.
Wait for it 😂
00:32
ILYA BORZOV
Рет қаралды 6 МЛН