What are parent methods and how can you call them?

Answers were Sorted based on User's Feedback



What are parent methods and how can you call them?..

Answer / saumyadip

parent methods are those method which is in parent class and
we can call it by using parant class reference variable or
super(in inheritance).

Is This Answer Correct ?    0 Yes 0 No

What are parent methods and how can you call them?..

Answer / bhadresh

super class method is call as parent method.

super Keyword use to call in child class or sub class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?

1 Answers  


What is an object-oriented paradigm?

5 Answers  


What is style and indentation?

1 Answers  


What is lambda programming?

1 Answers  


When abstract methods are used?

1 Answers  


What is flush () in java?

1 Answers  


Which list is sorted in java?

1 Answers  


What Is Query Throttling in java?

1 Answers   HCL,


Can we pass a primitive type by reference in java? How

1 Answers  


What is widening and narrowing in java? Discuss with an example.

1 Answers   Amdocs,


11. static class A { 12. void process() throws Exception { throw new Exception(); } 13. } 14. static class B extends A { 15. void process() { System.out.println(”B”); } 16. } 17. public static void main(String[] args) { 18. new B().process(); 19. } What is the result? 1 B 2 The code runs with no output. 3 Compilation fails because of an error in line 12. 4 Compilation fails because of an error in line 15.

6 Answers  


Which collection is thread safe in java?

1 Answers  


Categories