| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Name the methods in mouse listeners ? | | 3 |
| what is private constructor?what are the uses of writing
private constructor in our program? | | 5 |
| why interfaces are faster than abstract classes? | | 2 |
| How can you reverse a string? | | 4 |
| what is the difference between static block and static
method | Huawei | 9 |
| What are concepts of OOPS and how are they implemented in
Java? | KPIT | 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 |
| Where the CardLayout is used? | | 1 |
| Hey buddy.. can you please tell me about the use of marker
interface? And is there any link between marker interface
and factory methods?
Thanks in advance. | | 2 |
| suppose in a class there is a code like this:
{
Set hs=new Hashset();
hs.add(new Emp("kathy",1000));
hs.add(new Emp("kathy",2000));
}
how can u avoid the above code in your class as set won't
allow duplicate objects? | | 2 |
| Why we use static and synchronized in method for single
thread model
example:
public static synchronized add(){} | | 1 |
| what is use of session tracking ?with example? | Photon | 1 |
| What is difference between hash mapping and hash table? | NDS | 3 |
| How many statements can be created with one connection in jdbc? | Polaris | 2 |
| What are the OOPS concepts in Java ? | Satyam | 3 |
| How many times garbage collector will invoke an object?s
finalize() method? | | 4 |
| Is it compulsory to have atleast one abstract method in
abstract class?
| | 7 |
| how session will be expired ? | Satyam | 2 |
| Does 'true' and 'false' are keywords? | | 5 |
| How Applets & Servlets will communicate with each other? | | 2 |
| |
| For more Core Java Interview Questions Click Here |