Java Application Developer

Java Application Developer Interview Questions and Answers

Updated 7 Nov 2023

Q1. 1.What is Overloading, Overriding, different types of Comstructors . Why do we need it?

Ans.

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 more
Ans.

Prepared 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?

Ans.

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?

Ans.

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

Lead Application Developer - Java 6-9 years
UPS Pvt. Ltd.
3.7
Chennai
Application Developer - Java Spring Boot & Microservices 1-3 years
Oracle India Pvt. Ltd.
3.7
Kolkata
WebSphere Portal Application Developer - Java/J2EE Platform (7-15 yrs) 7-15 years
MRCC
3.4
Are these interview questions helpful?
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 10.5k Interviews
3.8
 • 8.2k Interviews
4.0
 • 2.4k Interviews
3.9
 • 109 Interviews
View all

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

Java Application Developer Interview Questions
Share an Interview
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

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