𝐀𝐏𝐈_𝐓𝐞𝐬𝐭𝐢𝐧𝐠_𝐍𝐨𝐭𝐞𝐬_.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
We will be posting longer posts/explainations on our linkedin page. Kindly follow that to stay updated
https://www.linkedin.com/company/frb-java/
https://www.linkedin.com/company/frb-java/
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
Anonymous Quiz
19%
super
7%
this
14%
extent
60%
extends
🔥4👍1
TechShiksha by Badkul Technology
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); }
Linkedin
FRB Java on LinkedIn: What will be the output of following
👍4
above is the explaination of yesterday's quiz. why first syso is printing true and second one false