TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
80
Not published
0
To review
0
TechnologyProfessionTest
Sort by
Newest
Most popular
Last review
Filter by
Published
80
Not published
0
To review
0
80 questions
Hard
9 votes608 runs0 comment
Hard
4 votes209 runs0 comment
Medium
3 votes524 runs0 comment
Medium
2 votes332 runs0 comment
Medium
2 votes312 runs1 comment
Easy
2 votes305 runs0 comment
Medium
1 vote574 runs2 comments
In this code, the class B extends the class A. The class B overrides the method talk() from the class A. The object b is an instance of the class B. The object a is an instance of the class A. The object a is assigned to the object b. The object a calls the method talk(). The method talk() from the class B is called.
Samuelat Mar 28, 2023
Easy
1 vote538 runs0 comment
Hard
1 vote531 runs1 comment
What does the following code return ? public class A { public void talk() { echo "I am A" } public secretTalk() { this.talk() } } public class B extends A { private void talk() { echo "I am B" } public secretTalk() { this.talk() } } A b = new B() b.talk() b.secretTalk() Answer : "I am A" "I am B"
Samuelat Mar 28, 2022
Medium
1 vote324 runs1 comment
Medium
1 vote317 runs0 comment