👍3🔥2
🔥4
Why a constructor cannot be final in Java?
Ans: If a method is marked as final it means we do not want any class to override it. As per Java Language Specification, a constructor cannot be overridden. So, there is no use in declaring a constructor as final.
Ans: If a method is marked as final it means we do not want any class to override it. As per Java Language Specification, a constructor cannot be overridden. So, there is no use in declaring a constructor as final.
👍6
for more susch interview questions please follow our linkedin page
https://www.linkedin.com/feed/update/urn:li:share:7028945918791925760/
https://www.linkedin.com/feed/update/urn:li:share:7028945918791925760/
Linkedin
FRB Java on LinkedIn: #java
Why a constructor cannot be final in Java?
#java Ans: If a method is marked as final it means we do not want any class to override it. As per Java Language…
#java Ans: If a method is marked as final it means we do not want any class to override it. As per Java Language…
👍1
👍2
Newly Joined Members subscribe to our channel to learn programming and crack written exams.
https://tinyurl.com/dzrt4f7d
Discuss doubts in @tcs_infosys_accenture
https://tinyurl.com/dzrt4f7d
Discuss doubts in @tcs_infosys_accenture
👍1
Anonymous Quiz
7%
C++
15%
J++
74%
OAK
4%
TEAK
👍3
👍9❤1👎1👏1
👍3❤1😁1
Newly Joined Members subscribe to our channel to learn programming and crack written exams.
Click on below link to subscribe
https://tinyurl.com/dzrt4f7d
Discuss doubts in @tcs_infosys_accenture
Click on below link to subscribe
https://tinyurl.com/dzrt4f7d
Discuss doubts in @tcs_infosys_accenture
👍1
Anonymous Quiz
2%
.j
1%
.ja
94%
.java
3%
.jax
👍4
Anonymous Quiz
31%
method
21%
native
19%
reference
28%
array
👍4🥰1👏1
Forwarded from TechShiksha by Badkul Technology (admin)
Newly Joined Members subscribe to our channel to learn programming and crack written exams.
Click on below link to subscribe
https://tinyurl.com/dzrt4f7d
Discuss doubts in @tcs_infosys_accenture
Click on below link to subscribe
https://tinyurl.com/dzrt4f7d
Discuss doubts in @tcs_infosys_accenture
🥰4
Anonymous Quiz
6%
a = 10
28%
a = 14.867
29%
a = 14
37%
compiler error
👍1
TechShiksha by Badkul Technology
This will give compilation error. But real intent of asking this question was to use it in below way
int a = (int)(10+4.867);
int a = (int)(10+4.867);
Anonymous Quiz
48%
?:
31%
:?
13%
:<
8%
<:
❤1🔥1
Forwarded from TechShiksha by Badkul Technology (admin)
Newly Joined Members subscribe to our channel to learn programming and crack written exams.
Click on below link to subscribe
https://tinyurl.com/dzrt4f7d
Discuss doubts in @tcs_infosys_accenture
Click on below link to subscribe
https://tinyurl.com/dzrt4f7d
Discuss doubts in @tcs_infosys_accenture