Add office photos
Employer?
Claim Account for FREE

Visa

3.6
based on 338 Reviews
Filter interviews by

10+ B E Pumps Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. how does ajax call work

Ans.

Ajax calls allow for asynchronous communication between client and server without reloading the page.

  • Ajax stands for Asynchronous JavaScript and XML

  • Uses XMLHttpRequest object to send and receive data

  • Allows for partial page updates without reloading the entire page

  • Can handle data in various formats such as JSON, XML, HTML, and plain text

  • Example: $.ajax({url: 'example.com', success: function(data){console.log(data)}});

View 1 answer

Q2. how do you create immutable in java

Ans.

Creating immutable in Java

  • Use final keyword to make variables immutable

  • Use private constructor to prevent object modification

  • Use defensive copying to prevent modification of mutable objects

  • Use enum to create immutable objects

  • Use String class to create immutable strings

Add your answer

Q3. where have you used immutable in java

Ans.

Immutable is used in Java to create objects whose state cannot be changed after creation.

  • Immutable objects are thread-safe and can be shared without the risk of data corruption.

  • Examples of immutable classes in Java include String, Integer, and LocalDate.

  • Immutable objects can be created using the final keyword, constructor initialization, and static factory methods.

Add your answer

Q4. what is observer pattern

Ans.

Observer pattern is a design pattern in which an object maintains a list of its dependents and notifies them automatically of any state changes.

  • Also known as publish-subscribe pattern

  • Used in event-driven systems

  • Allows loose coupling between objects

  • Example: A weather station broadcasts weather updates to multiple displays

  • Example: A stock market ticker notifies multiple investors of stock price changes

Add your answer
Discover B E Pumps interview dos and don'ts from real experiences

Q5. difference between REST and SOAP

Ans.

REST is lightweight and uses HTTP while SOAP is XML-based and has more features.

  • REST uses HTTP methods like GET, POST, PUT, DELETE while SOAP uses XML messaging.

  • REST is stateless while SOAP can maintain state.

  • REST is faster and easier to use while SOAP is more secure and reliable.

  • REST is used for web services while SOAP is used for enterprise-level services.

  • Example of REST: Twitter API. Example of SOAP: Amazon Web Services.

Add your answer

Q6. what is immutable in java

Ans.

Immutable in Java refers to objects whose state cannot be changed after creation.

  • String, Integer, and other wrapper classes are immutable in Java.

  • Immutable objects are thread-safe and can be shared without synchronization.

  • To create an immutable class, make all fields final and private, and don't provide setters.

  • Examples of immutable classes in Java include LocalDate, LocalTime, and LocalDateTime.

Add your answer

Q7. what is dependency injection

Ans.

Dependency injection is a design pattern that allows objects to receive dependencies rather than creating them internally.

  • It helps to decouple the code and makes it more testable and maintainable.

  • It allows for easier swapping of dependencies without changing the code.

  • There are three types of dependency injection: constructor injection, setter injection, and interface injection.

  • Example: Instead of creating a database connection object inside a class, the object is passed as a ...read more

Add your answer

Q8. what is GET and POST

Ans.

GET and POST are HTTP methods used for sending data to a server.

  • GET is used to retrieve data from a server

  • POST is used to submit data to a server

  • GET requests can be cached and bookmarked

  • POST requests are not cached and cannot be bookmarked

  • GET requests have length restrictions

  • POST requests have no length restrictions

  • GET requests are less secure than POST requests

Add your answer

Q9. what is CORS

Ans.

CORS stands for Cross-Origin Resource Sharing. It is a security feature implemented in web browsers to restrict access to resources from different origins.

  • CORS allows web servers to specify which origins are allowed to access its resources

  • It is implemented using HTTP headers

  • CORS prevents malicious websites from accessing sensitive data from other websites

  • Examples of resources that may be restricted by CORS include cookies, scripts, and APIs

Add your answer

Q10. what is singleton

Ans.

Singleton is a design pattern that restricts the instantiation of a class to a single object.

  • Singleton ensures that only one instance of a class exists in the entire application.

  • It provides a global point of access to the instance.

  • Commonly used in scenarios where a single instance needs to coordinate actions across the system.

  • Example: Database connection manager, logger, configuration manager.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at B E Pumps

based on 6 interviews in the last 1 year
2 Interview rounds
Technical Round 1
Technical Round 2
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

3.9
 • 100 Interview Questions
4.1
 • 26 Interview Questions
4.4
 • 21 Interview Questions
3.7
 • 20 Interview Questions
4.2
 • 17 Interview Questions
3.6
 • 13 Interview Questions
View all
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
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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