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
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 @javaforfree
Click on below link to subscribe
https://tinyurl.com/dzrt4f7d
Discuss doubts in @javaforfree
#Quiz_Java (Question - 82)
If a Java program has 4 classes then how many class files will be generated after compilation?
If a Java program has 4 classes then how many class files will be generated after compilation?
Anonymous Quiz
13%
2
58%
4
12%
8
17%
None of the above
👍3❤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
👍1