Day 74 | Daily Java interview question | #ocjp #scjp

preview_player
Показать описание
Daily Java interview questions
Java programming interview questions
core Java interview questions
core Java programming interview questions
Java tutorial
learn Java
Java programming for beginners
Java programming for experienced
Java for beginners
Java for experienced
core Java mock interview questions
#javacertification #java #javaprogramming #javaquestions #learnjava #interview #javainterviewquestion #javatutorial #scjp #ocjp #corejava #corejavainterviewquestions #corejavatutorial #corejavasql
springboot interview questions
springboot questions
#corejava
Рекомендации по теме
Комментарии
Автор

double... a and int... a are with three dot args. so it can take zero to any number of double or int values.

JerryyJedd
Автор

Output: Int
Because when there is a ambiguity problem like this in var-args methods both methods accepts zero arguments also but cases like this var-args methods java will give first priority to the smallest data type

naveen__
Автор

Exception
Because print() method calling there is no variable

LahariLucky-ge
Автор

Exception because you call non parameterized method

RaginiSingh-ghdp
Автор

exception, because without argument run method how invoke?

krishanyadav
Автор

Exception
because we called empty parameter method and system have not empty method present.

manojkoli
Автор

I mn not javaer but i think answer is int .. first double is printed and it is replaced by int So final o/p is int

PowerStar
Автор

Please solution clear ahh solringala enaku puriyala

my_princess_trish
Автор

Exception
bcoz method call is not parameterised.
print() is empty parameter while calling.

But, during implementation the method definition of print() is having parameters.

arvindpandey