Barclay Java Interview Questions
Carvia Tech | April 23, 2019 | 2 min read | 139 views
What is pass-by-value and pass-by-reference? Which mechanism is being used by Java?
Concurrency and multi-threading
What is an Immutable Class? Why is it important in multi-threading context? Can you write a Custom immutable class? What are semantics for writing an Immutable Class in java?
What is difference between sleep() and wait() method?
What is difference between Executor Framework and ForkJoinPool?
What is difference between Executor.submit() and Executor.execute() method?
What is ThreadLocal variable in Java?
How Garbage Collection works in Java, explain the underlying mechanism for any one of the Garbage Collector? Give few names of existing garbage collectors?
Write a code to iterate over a standard hashmap object in Java.
How will you use your custom Object as a Key inside hashing data-structure (Hashmap, ConcurrentHashmap, hashSet, etc.)?
What all things to keep in mind when you use Hashmap in multi-threaded environment?
Explain the working of put and get method of a hashmap class? How does equals() and hashcode() comes into picture there?
Write a code in java to remove elements of an array while iterating over it.
Discuss how HashSet works internally in java?
Write a recursive Java program to print Fibonacci Series?
How will find if the given input string is palindrome?
What is Composite design pattern
Explain Decorator design pattern
Discuss through example, The Producer Consumer problem.
How will you design a distributed algorithm for Prime Number generation in Java? Discuss the Design only.
Explain database normalization and its various usages.
What are top 10 coding standards for code reviews in Java?
Top articles in this category:
- Morgan Stanley Java Interview Questions
- Sapient Global Market Java Interview Questions and Coding Exercise
- Citibank Java developer interview questions
- Top 50 Multi-threading Java Interview Questions for Investment Bank
- UBS Top 10 Java Interview Questions
- BlackRock Top Java Interview Questions: Investment Banking Domain
- RBS Java Interview Questions
Find more on this topic:
Recommended books for interview preparation:
- Spring Security 5 - There is no PasswordEncoder mapped for the id
- Inter-thread communication in Java
- What are different thread states in Java
- Static method synchronization aka Class Lock in Java
- What is difference between HTTP Redirect and Forward
- Top 20 Java Concurrency Interview Questions and Answers
- What is Single Abstract Method (SAM) and Functional Interface in Java
- Difference between method overloading and overriding
- Method overloading rules in Java
- TCS - Microservices Interview Questions for Java Developers
Enter your email address to subscribe to this blog and receive notifications of new posts by email.