Crisil
e2open Interview Questions and Answers
Q1. How would you write a REST API from scratch? Explain your role in the project.
To write a REST API from scratch, I would follow these steps:
Define the resources and endpoints
Choose a programming language and framework
Implement CRUD operations for each resource
Use HTTP methods and status codes correctly
Add authentication and authorization
Test the API using tools like Postman
Document the API using tools like Swagger
Q2. In How many ways we can create objects in Java
Objects in Java can be created in multiple ways, including using new keyword, cloning, deserialization, and reflection.
Using the 'new' keyword
Cloning an existing object
Deserialization from a file or network
Using reflection to create objects dynamically
Q3. Springboot annotations used in your project
Some common Springboot annotations used in projects are @RestController, @Autowired, @RequestMapping, @Service, @Component, @Repository.
@RestController - Used to define RESTful web services.
@Autowired - Used for automatic dependency injection.
@RequestMapping - Used to map web requests to specific handler methods.
@Service - Used to indicate that a class is a service.
@Component - Used to indicate that a class is a Spring component.
@Repository - Used to indicate that a class is ...read more
Q4. Difference between Interface and Abstract Class
Interface is a contract that defines the methods a class must implement, while abstract class can have both implemented and abstract methods.
Interface methods are public and abstract by default, while abstract class can have abstract and non-abstract methods.
A class can implement multiple interfaces but can only inherit from one abstract class.
Interfaces are used to achieve multiple inheritance in Java, while abstract classes are used to provide a common base for subclasses.
E...read more
Q5. What is Serialization
Serialization is the process of converting an object into a format that can be easily stored or transmitted.
Serialization is used to convert complex data structures or objects into a stream of bytes.
Serialized data can be stored in files, databases, or sent over a network.
Common serialization formats include JSON, XML, and Protocol Buffers.
Q6. Reverse the string
Reverse a given string
Use a loop to iterate through the characters of the string
Swap the characters from start to end to reverse the string
Return the reversed string
Interview Process at e2open
Top Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month