Wipro
10+ Linfox Logistics Interview Questions and Answers
Q1. Internal architecture of Spring boot, how enable autoconfiguration works
Spring Boot uses autoconfiguration to automatically configure the Spring application based on dependencies and properties.
Spring Boot autoconfiguration is achieved through @EnableAutoConfiguration annotation
Autoconfiguration classes are located in the org.springframework.boot.autoconfigure package
Autoconfiguration classes are conditionally applied based on the presence of specific classes or properties
Q2. How do you accumulate heap to the jvm and what values do you pass?
To accumulate heap to the JVM, specify the initial and maximum heap size using -Xms and -Xmx flags respectively.
Use -Xms flag to specify the initial heap size, e.g. -Xms512m for 512 MB.
Use -Xmx flag to specify the maximum heap size, e.g. -Xmx1024m for 1 GB.
Example: java -Xms512m -Xmx1024m YourClassName
Q3. Differnce between application server vs web server , OOPS , Collection ,Thread
Application server manages business logic while web server handles HTTP requests.
Application server provides services like security, transaction management, messaging, etc.
Web server handles HTTP requests and serves static content like HTML, CSS, JS, etc.
OOPS is a programming paradigm that focuses on objects and their interactions.
Collection is a framework that provides interfaces and classes to store and manipulate groups of objects.
Thread is a lightweight process that enabl...read more
Q4. Area of interest for new techniques
My area of interest for new techniques includes cloud computing, machine learning, and microservices architecture.
Cloud computing: Interested in exploring AWS, Azure, and Google Cloud Platform for scalable and cost-effective solutions.
Machine learning: Excited about implementing algorithms for data analysis and predictive modeling.
Microservices architecture: Looking into breaking down monolithic applications into smaller, independent services for better scalability and flexib...read more
Q5. How does JVM work with Hashmap
JVM works with Hashmap by using hash codes to store and retrieve key-value pairs efficiently.
JVM uses hash codes to determine the bucket location for each key-value pair in the Hashmap.
Hashmap uses a hashing function to convert keys into hash codes, which are then used to find the corresponding bucket in the underlying array.
In case of hash collisions, where multiple keys map to the same bucket, Hashmap uses linked lists or balanced trees to store multiple entries in the same...read more
Q6. Explain difference between == and equals method
The == operator compares memory addresses, while the equals method compares the actual content of objects.
The == operator checks if two object references point to the same memory location.
The equals method checks if two objects have the same content.
Example: String str1 = new String("hello"); String str2 = new String("hello"); str1 == str2 will return false, but str1.equals(str2) will return true.
Q7. find duplicate characters from string using java 8
Use Java 8 streams to find duplicate characters in a string.
Convert the string to a character array
Use streams to group by characters and count occurrences
Filter out characters with count greater than 1
Collect the duplicate characters into an array
Q8. Difference between hashmap and concurrentHashMap
HashMap is not thread-safe while ConcurrentHashMap is thread-safe.
HashMap is not thread-safe and can lead to ConcurrentModificationException if modified during iteration.
ConcurrentHashMap allows concurrent modifications without the need for external synchronization.
ConcurrentHashMap achieves thread-safety by dividing the map into segments, allowing multiple threads to operate on different segments concurrently.
ConcurrentHashMap is suitable for high-concurrency scenarios where...read more
Q9. what is java 8 features?
Java 8 introduced several new features including lambda expressions, streams, functional interfaces, and default methods.
Lambda expressions allow you to write code in a more concise and readable way.
Streams provide a way to work with collections of objects in a functional style.
Functional interfaces are interfaces with a single abstract method, which can be implemented using lambda expressions.
Default methods allow interfaces to have method implementations.
Other features incl...read more
Q10. java 8 features.
Java 8 introduced several new features including lambda expressions, functional interfaces, streams, and default methods.
Lambda expressions allow for more concise code by enabling functional programming.
Functional interfaces are interfaces with a single abstract method, used with lambda expressions.
Streams provide a way to work with sequences of elements and perform operations like filter, map, and reduce.
Default methods allow interfaces to have method implementations, reduci...read more
Interview Process at Linfox Logistics
Top Senior Java Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month