ITCS
10+ Optum Interview Questions and Answers
Q1. what difference between methid overloading and method overriding
Method overloading is having multiple methods with the same name but different parameters, while method overriding is having a subclass method with the same name and parameters as a superclass method.
Method overloading is resolved at compile-time based on the number and type of arguments passed
Method overriding is resolved at runtime based on the actual object type
Method overloading is used to provide different ways of calling the same method with different parameters
Method o...read more
Q2. what are implicite method of jsp ?
JSP does not have any implicit methods, but it has implicit objects.
JSP has implicit objects like request, response, session, application, pageContext, out, config, and exception.
These objects are automatically available in JSP pages without any declaration or initialization.
They can be used to perform various operations like accessing request parameters, setting session attributes, etc.
Q3. what are the framwork do you know ?
I know several frameworks including Spring, Hibernate, and Struts.
Spring: widely used for building enterprise-level applications
Hibernate: object-relational mapping framework for database access
Struts: MVC framework for building web applications
Q4. can we add null value in hashmap ?
Yes, null value can be added in HashMap.
HashMap allows null as key and value.
If a null key is added, it will replace the existing null key.
If a null value is added, it will be stored as a value with a null key.
Q5. difference berween abstract class and interface
Abstract class can have implementation while interface only has method signatures.
Abstract class can have constructors while interface cannot.
A class can implement multiple interfaces but can only extend one abstract class.
Abstract class can have non-abstract methods while interface only has abstract methods.
Abstract class is used for code reusability while interface is used for polymorphism.
Example of abstract class: Animal with abstract method 'makeSound' and non-abstract m...read more
Q6. servlet is interface or class ?
Servlet is an interface in Java EE used to handle HTTP requests and responses.
Servlet interface is implemented by classes like HttpServlet
It has methods like init(), service(), and destroy()
Servlets are used to create dynamic web pages and web applications
Q7. difference between oracle db and sql db
Oracle DB is a proprietary RDBMS while SQL DB is a generic term for any RDBMS that uses SQL as its language.
Oracle DB is developed and marketed by Oracle Corporation while SQL DB is a generic term for any RDBMS that uses SQL as its language.
Oracle DB is a proprietary RDBMS while SQL DB is a generic term for any RDBMS that uses SQL as its language.
Oracle DB has its own PL/SQL language while SQL DB uses SQL as its language.
Oracle DB is more expensive than SQL DB.
Oracle DB is mo...read more
Q8. what static block
Static block is a block of code that is executed when a class is loaded into memory.
Static block is declared using the 'static' keyword.
It is executed only once when the class is loaded.
It is used to initialize static variables or perform any other static initialization.
It can throw exceptions which need to be handled.
Multiple static blocks can be defined in a class and they are executed in the order they are defined.
Q9. what is testing
Testing is the process of evaluating a system or its component(s) with the intent to find whether it satisfies the specified requirements or not.
Testing is done to identify defects or errors in the system
It helps in improving the quality of the system
Testing can be done at different levels such as unit testing, integration testing, system testing, and acceptance testing
Automated testing is becoming more popular due to its efficiency and accuracy
Examples of testing tools inclu...read more
Q10. what is abstract
Abstract is a keyword in Java used to create abstract classes and methods.
Abstract classes cannot be instantiated
Abstract methods do not have a body and must be implemented by the subclass
Abstract classes can have both abstract and non-abstract methods
Abstract classes are used to provide a common interface for its subclasses
Example: abstract class Animal { abstract void makeSound(); }
Q11. fetures of opps
OOPs is a programming paradigm based on the concept of objects.
Encapsulation - bundling of data and methods that act on that data
Inheritance - ability of a class to inherit properties and methods from a parent class
Polymorphism - ability of objects to take on many forms
Abstraction - hiding of complex implementation details from the user
Top Java Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month