| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| real time example for deadlock,starvation,livelock | | 4 |
| Differences between GridLayout and GridBagLayout? | | 1 |
| byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p? | Wipro | 5 |
| What is an object?s lock? Give name of object?s that have
locks? | | 1 |
| When we will use an Interface and Abstract class? | | 3 |
| What is the difference between DataInputStream and
BufferedReader | | 1 |
| What are the two major components of JDBC? | Mind-Tree | 4 |
| What is hard code & soft code? | Wipro | 4 |
| what is difference between excute query ()and execute update
()? | Symphony | 5 |
| what is the difference between @include page and @include file | | 2 |
| Name two subclasses of the TextComponent class? | | 2 |
| what are class,constructor and primitive data types? | | 2 |
| Write program to print Hello World and print each character
address in that string and print how many times each
character is in that string?
Ex: H: 0 & 1
e:1 & 1
l :2,3,8 & 3
o:4,6 & 2
w:5 & 1
r: 7 & 1
d 9 & 1 | Huawei | 3 |
| why java not supproting multiple inheritance?
| | 5 |
| What is meant by Encapsulation? Can you write a class to
explain encapsulation? | Ness-Technologies | 8 |
| What is the difference between throw and throws? | Cap-Gemini | 2 |
| what is polymorphism? | Zensar | 5 |
| what is the difference between equals method and == | Professional-Access | 11 |
| how exactly garbage collection take place?
| | 4 |
|
class{
...
...
interface myinterface{
...
...
}
abstract class{
..
..
}
...
..
..
}
is this possible to write "Interface and/ or Abstract class
inside a class ?
if possible whcich one is possible
is only interface?
is only abstract? | Logica-CMG | 2 |
| |
| For more Core Java Interview Questions Click Here |