java interview questions on constructors #short

preview_player
Показать описание
java interview questions on constructors

correct answer is a. int as by default 10 is considered as int

#automation
#shorts
#javaprogramming
#javaprogrammingtutorial
#javaprogrammingtutorial
#javaforbeginners
#automationtester
#testing
#seleniumautomation
Рекомендации по теме
Комментарии
Автор

Object is not create in main method and jvm is not start program, so it's a compile time error

murliengineering
Автор

Put semicolon after println statement
Ok sir then ask

naiveyoutuber
Автор

Compile time error bcoz no terminate syso & object created outside the class

dindegita
Автор

Runtime exception as main method hasn't incorporated

bhuvam
Автор

Object is created outside of the class so It is giving compile time error

sandipvishwakarma
welcome to shbcf.ru