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
𝐀𝐏𝐈_𝐓𝐞𝐬𝐭𝐢𝐧𝐠_𝐍𝐨𝐭𝐞𝐬_.pdf
1.4 MB
𝐀𝐏𝐈 𝐓𝐞𝐬𝐭𝐢𝐧𝐠 𝐍𝐨𝐭𝐞𝐬 .pdf
Which version of Java are you using?
Anonymous Poll
41%
8
19%
11
12%
13
14%
17
31%
17+
8%
Less than 8
👍2👏1
Guys suggest Java topics under reply of this post on which you need videos or notes
👍3
Anonymous Quiz
46%
exit()
16%
break
15%
continue
23%
return
👍6🔥2👏2
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 @javaforfree
Click on below link to subscribe
https://tinyurl.com/dzrt4f7d
Discuss doubts in @javaforfree
save this jar file and run with below command
java -jar quiz.jar
and enjoy our quiz
java -jar quiz.jar
and enjoy our quiz
What is method overriding in java ?
If we have methods with same signature (same name, same arguments, same return type) in super class
and subclass then we say
subclass method is overridding method in superclass.
When to use overriding in java
If we want same method with different behaviour in superclass and subclass then we go for overriding.
When we call overridden method with subclass reference subclass method is called hiding the superclass
method.
If we have methods with same signature (same name, same arguments, same return type) in super class
and subclass then we say
subclass method is overridding method in superclass.
When to use overriding in java
If we want same method with different behaviour in superclass and subclass then we go for overriding.
When we call overridden method with subclass reference subclass method is called hiding the superclass
method.
👍8
Anyone interested in sharing recent interview experience with any company? We may share that experience with proper answers on our channel
👍5
What will be the output of following code ?public static void main(String[] args) { Integer i1 = 127; Integer i2 = 127; System.out.println(i1 == i2); Integer i3 = 128; Integer i4 = 128; System.out.println(i3 == i4); }
Anonymous Quiz
65%
true true
19%
false false
9%
false true
7%
true false
👍10👎1