Everything related to Core Java. Concentrated mainly on OOPS concepts.be ready for tricky question on inheritance and polymorphism.

Galla Anusha
1y

1.Acquiring the properties of one class into another class.

If we want to achieve inheritance we need to use either extends or implements.

There are 5 types of inheritance in java.

*.Single inheritance.

*.multilevel inheritance.

*.Hyrarichal inheritance.

*.Hybrid inheritance.

*.multiple inheritance. In java multiple inheritance is not supported, but If we want achieve multiple inheritance we can do that by using interfaces.

2.It is a process of performing multiple tasks with the same time.

there are two types of polymorphisms are there.

1.Compiletime polymorphism.(Method overloading)

2.Runtime polymorphism.(Method overriding)

method overloading:Writting two are more methods with same class having same method name with different parameters.

Method Override:Writing two are more methods in two different classes having same method name ,same parameter,same return type.

Help your peers!
Add answer anonymously...
UST Java Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter