Q. What is the difference between Singleton and Immutable object
Java Developer Interviews
Java Developer Interview Questions
In your interview for a java developer position, be prepared to answer technical questions that test your understanding of Java basics. Interviewers may also ask open-ended questions to assess your coding and problem-solving abilities. Prepare for non-technical questions that focus on time management, interpersonal communication, and work ethic.
Top Java Developer Interview Questions & How to Answer
Question #1: What is the difference between HashTable and HashMap in Java?
Question #2: Write a program to determine if 243 is an Armstrong number.
Question #3: How do you produce quality code when you have several Java projects to complete at once?
30,830 java developer interview questions shared by candidates
Question: Write pseudo code to validate and evaluate a given arithematic expression Example: a+(b*c)+(d/e) If the input is syntactically wrong, display an error message else display the result
Question: Write a simple query to show data in a single resultset. Resultset should have department table data first order by deptname and followed immediately by sub-department table data also ordered by deptname. Both tables data should be wrapped in a single resultset, with the above criteria.
what is the output public class Barclays { static class A{ A(){ f(); } public void f(){ System.out.println("A ctor"); } } static class B extends A{ B(){ f(); } public void f(){ System.out.println("B ctor"); } } public static void main(String[] args) { B b = new B(); b.f(); A a = new A(); a.f(); } }
How concurrent Hashmap works ?
Write a method to remove even numbers from list without using any other collection.
Program : find duplicate string from list
Yeah, it is not thread safe, you can call it just a certain number of times, what would you do? There is some feature in the language, but I'm trying to see what you think.
1. Implement Comparable Interface? 2. Write a Employee class and sort its properties age and Emp name? 3. How actually hashmap works in Java? 4. How the size of ArrayList grows dynamically?
Draw merge sort on paper.
Viewing 351 - 360 interview questions