Frequently Asked Java Interview Questions Part – 4

Part 4 16 : Can we overload static methods?  Answer : Yes.. There is not any restriction to overload static methods. We can overload static and non static methods in java. VIEW MORE on overloading in java. 17 : Can we use private member of parent class in sub class? Answer : No.. It will not allow to use private … Read more

What Is The Use of “final” Keyword In Java

Interviewer can ask you question “What is final keyword in java“. “final” is a keyword which is reserved in java software development language. It restrict the user. “final” keyword In Java can be used with different three contexts in java like variable, method and class. If define an entity which may only be assigned once. Now let’s try to understand … Read more

Similarities And Difference Between Abstract Class And Interface

Earlier we learnt about interface in THIS POST and abstract class THIS POST. Now let’s try to understand the similarities and difference between abstract class and interface in java software development language. The interviewer can ask you this question when you go for a Selenium webdriver with Java interview. There are a few similarities and differences between interface … Read more

What Is Method Overloading In Java?

Method Overloading Many peoples get confused between method overloading and method overriding in java software development language. Earlier we learnt about method overriding in THIS POST. Method overloading concept is totally different than method overriding. If interviewer asks you question about method overloading then your answer should be like this “When class have two or more methods … Read more