Filter interviews by
Method overloading is when a class has multiple methods with the same name but different parameters.
Method overloading allows for more flexibility in method calls.
The methods must have different parameter types or number of parameters.
Example: void print(int num), void print(String str), void print(int num1, int num2)
Overloading is determined at compile-time based on the method signature.
Exception handling is the process of handling errors that occur during program execution.
Exceptions are objects that represent errors or exceptional events.
Exception handling involves catching and handling these exceptions.
It helps prevent program crashes and allows for graceful error recovery.
Examples of exceptions include NullPointerException, ArrayIndexOutOfBoundsException, and IOException.
Java inheritance is a mechanism where one class acquires the properties and behaviors of another class.
Inheritance allows code reusability and saves time and effort in coding.
The class that is being inherited from is called the superclass or parent class.
The class that inherits from the superclass is called the subclass or child class.
The subclass can access all the public and protected methods and fields of the s...
Object-oriented programming (OOP) principles in Java include encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods together into a single unit (class) to hide implementation details.
Inheritance: Creating new classes (subclasses) from existing classes (superclasses) to inherit properties and behaviors.
Polymorphism: The ability of an object to take on many forms, allowing...
What people are saying about Accenture
Polymorphism is the ability of an object to take on many forms.
Polymorphism allows objects of different classes to be treated as if they are of the same class.
It is achieved through method overriding and method overloading.
Example: A parent class Animal can have child classes like Dog, Cat, and Bird. All these child classes can have their own implementation of the method 'makeSound', which is overridden from the p...
An object is an instance of a class that encapsulates data and behavior.
Objects have state and behavior
They can interact with other objects through methods
Objects can be created from classes
Example: A car object has state (color, model) and behavior (drive, stop)
Example: A person object has state (name, age) and behavior (eat, sleep)
Encapsulation is the process of hiding implementation details and providing access to only necessary information.
Encapsulation is achieved through access modifiers like private, public, and protected.
It helps in achieving data security and prevents unauthorized access.
Encapsulation also helps in achieving code maintainability and flexibility.
For example, a class can have private variables and public methods to acc...
Inheritance is a mechanism in OOP where a new class is derived from an existing class.
It allows the new class to inherit the properties and methods of the existing class.
The existing class is called the superclass or parent class, and the new class is called the subclass or child class.
The subclass can add new properties and methods or override the existing ones.
Example: A Car class can be a superclass, and a Spor...
Iterating an ArrayList using stream in Java
Convert the ArrayList to a stream using stream() method
Use forEach() method to iterate through the stream
Use lambda expression to perform an action on each element
Example: myList.stream().forEach(element -> System.out.println(element));
Versions in REST API can be handled using URL versioning, header versioning, or media type versioning.
URL versioning involves adding the version number in the URL path, e.g. /api/v1/users
Header versioning involves adding the version number in the request header, e.g. X-API-Version: 1
Media type versioning involves adding the version number in the media type, e.g. application/vnd.company.v1+json
Choose a versioning s...
I applied via Naukri.com and was interviewed in Dec 2024. There was 1 interview round.
Java 8 introduced lambda expressions, Java 11 added local-variable syntax for lambda parameters, and Java 17 included sealed classes and pattern matching.
Java 8 introduced lambda expressions for functional programming.
Java 11 added local-variable syntax for lambda parameters to simplify code.
Java 17 included sealed classes to restrict inheritance and pattern matching for instanceof checks and type casts.
Using Java 8 features like streams and lambdas to manipulate strings efficiently.
Use Stream API to filter strings: List<String> filtered = strings.stream().filter(s -> s.startsWith("A")).collect(Collectors.toList());
Transform strings with map: List<String> uppercased = strings.stream().map(String::toUpperCase).collect(Collectors.toList());
Count occurrences of a character: long count = strings.stream().fi...
Java is a high-level, object-oriented programming language known for its portability, security, and robustness.
Java is platform-independent, meaning it can run on any device with a Java Virtual Machine (JVM)
It is object-oriented, allowing for the creation of reusable code and modular programs
Java is known for its security features, such as sandboxing and encryption
It is widely used in web development, mobile applicatio...
Java is not purely object-oriented as it also supports primitive data types and static methods.
Java supports primitive data types like int, double, boolean which are not objects.
Static methods in Java belong to the class itself and do not require an instance to be called.
Java also has features like enums and interfaces which are not strictly object-oriented.
I am motivated to seek employment at this company because of its reputation for innovation and commitment to employee growth.
I am impressed by the company's track record of developing cutting-edge technology solutions.
I value the emphasis this company places on continuous learning and professional development.
I am excited about the opportunity to work with a talented team of developers and contribute to impactful proje...
Java 8 introduced several new features including lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow for more concise code and enable functional programming.
Functional interfaces are interfaces with a single abstract method, used for lambda expressions.
Streams provide a way to work with sequences of elements and support parallel processing.
Default methods allow interfaces to...
Currently working as a Java Developer at XYZ Company, responsible for developing and maintaining Java applications.
Developing and maintaining Java applications
Collaborating with team members on projects
Participating in code reviews and debugging
Implementing new features and enhancements
Troubleshooting and resolving technical issues
I applied via Company Website and was interviewed in Aug 2024. There was 1 interview round.
Annotations like @RestController, @RequestMapping, @Autowired are used in Spring for defining RESTful services.
Annotations like @RestController, @RequestMapping, @Autowired are used in Spring for defining RESTful services
Annotations like @GetMapping, @PostMapping, @PutMapping, @DeleteMapping are used for mapping HTTP methods to controller methods
Annotations like @PathVariable, @RequestParam are used for handling reques...
Controller is a general term for classes that handle requests in a web application, while RestController specifically handles RESTful requests.
Controller is a general term for classes that handle requests in a web application
RestController is a specialized type of controller that specifically handles RESTful requests
RestController is annotated with @RestController, while Controller is annotated with @Controller
RestCont...
Easy to crack the test
Easy to crack, focus on oops concepts
I applied via Walk-in and was interviewed in Oct 2024. There were 2 interview rounds.
Profit loss and permutations questions
Basic core questions
Some of the top questions asked at the Accenture Java Developer interview -
The duration of Accenture Java Developer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 49 interview experiences
Difficulty level
Duration
based on 70 reviews
Rating in categories
Application Development Analyst
39.3k
salaries
| ₹4.8 L/yr - ₹11 L/yr |
Application Development - Senior Analyst
27.7k
salaries
| ₹8.3 L/yr - ₹16.1 L/yr |
Team Lead
26.6k
salaries
| ₹12.6 L/yr - ₹22.5 L/yr |
Senior Analyst
19.5k
salaries
| ₹9.1 L/yr - ₹15.7 L/yr |
Senior Software Engineer
18.5k
salaries
| ₹10.4 L/yr - ₹18 L/yr |
TCS
Cognizant
Capgemini
Infosys