What are parent methods and how can you call them?
Answers were Sorted based on User's Feedback
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 |
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 |
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
What is an object-oriented paradigm?
What is style and indentation?
What is lambda programming?
When abstract methods are used?
What is flush () in java?
Which list is sorted in java?
What Is Query Throttling in java?
Can we pass a primitive type by reference in java? How
What is widening and narrowing in java? Discuss with an example.
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.
Which collection is thread safe in java?