Java Application Developer
Java Application Developer Interview Questions and Answers
Q1. 1.What is Overloading, Overriding, different types of Comstructors . Why do we need it?
Overloading is when multiple methods have the same name but different parameters. Overriding is when a subclass provides a different implementation of a method from its superclass. Constructors are special methods used to initialize objects.
Overloading allows us to have multiple methods with the same name but different parameters, providing flexibility and code reusability.
Overriding allows a subclass to provide its own implementation of a method inherited from its superclass...read more
Q2. Statement vs prepared statements(whats the use of pstmts over stmts), why microservice when the same can happen in monolithic(Not normal differences expected something else), how Rest API will work (internal pr...
read morePrepared statements are precompiled SQL statements that can improve performance and security. Microservices offer scalability and flexibility over monolithic architecture. REST API works by using HTTP methods to interact with resources.
Prepared statements are precompiled SQL statements that can be reused multiple times, improving performance by reducing database load and preventing SQL injection attacks.
Microservices allow for independent deployment, scalability, and flexibil...read more
Q3. Can we overload the main method or constructor?
Yes, we can overload the main method and constructor in Java.
Overloading means having multiple methods or constructors with the same name but different parameters.
In the case of the main method, we can have multiple main methods with different parameter lists.
For example, we can have a main method with the signature 'public static void main(String[] args)' and another with 'public static void main(String arg)'
Similarly, constructors can also be overloaded by having different ...read more
Q4. Can we override the static method?
No, we cannot override static methods.
Static methods belong to the class and not to the instance of the class.
Overriding is a concept of polymorphism which is not applicable to static methods.
However, we can have a static method with the same name in the subclass which is called method hiding.
Java Application Developer Jobs
Interview Questions of Similar Designations
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month