Everything related to Core Java. Concentrated mainly on OOPS concepts.be ready for tricky question on inheritance and polymorphism.
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.
Popular interview questions of Java Software Engineer
Reviews
Interviews
Salaries
Users/Month