By Vignesh
Java Interview Questions & Answers
Technology:
- How is Java Platform independent?
- What is the difference between break and continue keywords?
- What is the difference between Local and Instance variable in Java?
- What is Garbage Collection?
- Print first K Max Numbers
- Is Java Pass By Reference?
- What is a final class?
- What is Synchronized method?
- What is a native method? Any example?
- Where are the local variables stored in JVM?
- Can Local variable be final?
- Datastructure to be used when multiple threads access shared data in a web application
- What is enum?
- What are Transient variables?
- Can the type of the reference variable be changed at run time?
- Can a sub class extend two super classes?
- Can you override a final or static method?
- Coin Change - Provide denominations
- Flipping Bits
- How to find maximum of two numbers without using comparison operator in Java?
- Pancake Sorting
- Perfect Squares - Sherlock and Squares
- Sort lexicographically - Bigger is greater
- Swap two variables without using arithmetic operator & third variable
- What are the rules to overload a method?
- Queue - Using 2 Stacks
- What is Cohesive?
- Coding Challenge - Java
- What is Coupling?
- Can a finally block gets invoked if a return statement got executed in try block?
- How to count number of 1's in a binary number ?
- Java Coding Problem 1
- Print a Staircase of Size N
- What is the output of the following program?
- What is the super class of Exception?
- Java Coding Problme 2
- What are the different states of Thread?
- What are the different ways to create a Thread?
- Difference between Array and ArrayList
- How to Stop a thread?
- How to configure error page in web.xml?
- What is Auto Boxing?
- What is the purpose of Serial Version UID in Java?
- Difference between ClassNotFoundException and NoClassDefFoundError in Java?
- Java Coding Problem - 3
- Java Coding Problem - 4
- What is the purpose of yield() method in Thread Class?
- Breadth First Search - Java
- What is the diference between interrupted and isInterupted() method in Thread?
- Fibonacci Series - Find nth Fibonacci Number
- How to swap two string without using a thrid variable?
- Method Overloading - What is the output of following code snippet ?
- Stack - Implementation
- When a Thread will throw an interrupted exception?
- How to create an immutable class in Java?
- How to find duplicate elements in an array?
- Java - Matrix multiplication of m*n - n*l matrix
- SQL query to find Nth Max Salary
- What will be the output for the following code?
- What will be the uutput of the following Code?
- How to configure JSP in web.xml?
- Coding Problem - 1
- Coding Problem - 2
- Coding Problem - 3
- Coding Problem - 4
- Difference between response.sendError() and response.setStatus() ?
- How to create read only collections in java?
- How to find factors of a given number ?
- How to find number of k's between 0 to n ?
- How to print floyd's triangle in java?
- Java - Problems of returning a constant hashCode
- Java - Program to illustrate Producer/Consumer model
- What will be the output of the following program?
- What is Hadoop ?
- What is be the output of the following Code?
- What is generic erasure?
- what is a dialect in Hibernate?