Guardian India
10+ PwC Interview Questions and Answers
Q1. how internal resource view resolver will work.
Internal resource view resolver resolves view names to actual view resources within the application.
Internal resource view resolver is a part of Spring MVC framework.
It maps view names to actual view resources within the application.
It resolves the view name to a View object that can render the response.
It can be configured in the application context file using the bean tag.
Example:
Q2. what is abstraction and how to achieve it.
Abstraction is the process of hiding complex implementation details and exposing only the necessary information.
Abstraction is achieved through the use of abstract classes and interfaces.
It helps in reducing complexity and making code more maintainable.
Abstraction allows for better separation of concerns and promotes modularity.
Examples of abstraction include the use of APIs and libraries.
Abstraction is a key concept in object-oriented programming.
Q3. difference between interface and functional interface
An interface is a blueprint for a class while a functional interface is an interface with only one abstract method.
An interface can have multiple abstract methods while a functional interface has only one.
Functional interfaces can be used with lambda expressions and method references.
Examples of functional interfaces include Runnable, Comparator, and Callable.
Interfaces can have default and static methods while functional interfaces cannot.
Functional interfaces are used exten...read more
Q4. when will get bean not found exception
Bean not found exception occurs when a requested bean is not present in the container.
Occurs during runtime when a bean is not defined in the application context
Can be caused by typos in bean names or incorrect configuration
Can be resolved by defining the missing bean or correcting the configuration
Q5. difference between controller and rest controller.
Controller is a basic Spring MVC controller while RestController is used to create RESTful web services.
Controller is used for traditional web applications while RestController is used for RESTful web services.
RestController returns data in JSON or XML format while Controller returns data in HTML format.
RestController is annotated with @RestController while Controller is annotated with @Controller.
RestController is a specialized version of Controller.
Example: @RestController ...read more
Q6. How to debug issues in different monitoring tools.
Debugging issues in monitoring tools requires a systematic approach.
Identify the problem by analyzing the monitoring data.
Check the logs and error messages for more information.
Use debugging tools like traceroute, ping, and tcpdump to isolate the issue.
Collaborate with other teams to identify the root cause and find a solution.
Document the process and solution for future reference.
Q7. what is application container
An application container is a lightweight, standalone executable package that contains everything needed to run an application.
Application containers provide a way to package and deploy applications in a consistent and reproducible way.
They isolate the application from the underlying system, making it portable across different environments.
Examples of container technologies include Docker, Kubernetes, and OpenShift.
Q8. what is serialization
Serialization is the process of converting an object into a format that can be stored or transmitted.
Serialization is used to transfer data over a network or to store it in a file.
It involves converting an object into a stream of bytes or characters.
The serialized data can then be deserialized back into an object.
Serialization is commonly used in programming languages like Java and C#.
Examples of serialization formats include JSON, XML, and binary formats like Protocol Buffer...read more
Q9. Runtime polymorphism with example
Runtime polymorphism is the ability of an object to take on many forms.
It allows a subclass to provide its own implementation of a method that is already provided by its parent class.
It is achieved through method overriding.
Example: Animal class has a method called 'makeSound'. Dog and Cat classes extend Animal and override the 'makeSound' method to bark and meow respectively.
Q10. difference between RDBMS and NOSQL
RDBMS is a relational database management system while NoSQL is a non-relational database management system.
RDBMS stores data in tables with predefined schema while NoSQL stores data in documents, key-value pairs, or graphs.
RDBMS supports ACID transactions while NoSQL sacrifices ACID for scalability and flexibility.
RDBMS is best suited for structured data while NoSQL is best suited for unstructured or semi-structured data.
Examples of RDBMS include MySQL, Oracle, and SQL Serve...read more
Q11. creating threads. use of filters.
Creating threads involves dividing a program into smaller tasks that can run concurrently. Filters are used to process data.
Threads allow for parallel processing and can improve performance.
Filters are used to manipulate data by applying a set of rules or conditions.
Examples of filters include sorting, searching, and transforming data.
Filters can be applied to threads to process data in parallel.
Q12. explain about stream API
Stream API is a Java API that allows processing of collections of objects in a functional way.
Stream API provides a set of functional interfaces to perform operations on collections.
It supports parallel processing of collections.
It can be used to filter, map, reduce, and sort collections.
Example: List
numbers = Arrays.asList(1, 2, 3, 4, 5); numbers.stream().filter(n -> n % 2 == 0).forEach(System.out::println); Example: List
names = Arrays.asList("John", "Jane", "Jim"); names.s...read more
Q13. spring boot advantages.
Spring Boot provides rapid application development and easy deployment with minimal configuration.
Auto-configuration of dependencies
Embedded server for easy deployment
Actuator for monitoring and managing applications
Support for various data sources and frameworks
Easy integration with other Spring projects
Reduced boilerplate code
Support for microservices architecture
More about working at Guardian India
Top Senior Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month