| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Explain the term serialization? | Wipro | 4 |
| what modifiers are used with top-level class? | | 2 |
| static inner classes means..? | | 1 |
| how can u handle run time exception in java? explain with
brief explanation with examples? | CTS | 2 |
| What are Encapsulation, Polymorphism and Inheritance? | | 1 |
| How can you debug the Java code? | BirlaSoft | 2 |
| What is operator? | | 1 |
| Can you extend more than one interface? | | 4 |
| wht is customised exception? | Prudential | 1 |
| how to connect one jsp page to another jsp page???? | Symphony | 2 |
| How to re-get an object that is collected by garbage
collector? | | 1 |
| What is garbage collection in Java, and how can it be used ? | Wipro | 4 |
| Is &&= a valid Java operator? | | 2 |
| I/O blocking means? | | 1 |
| public class Garbage
{
int a=0;
public void add()
{
int c=10+20;
System.out.println(c);
System.out.println(a);
}
public static void main(String args[])
{
Garbage obj=new Garbage();
System.gc();
System.out.println("Garbage Collected");
obj.add();
}
}
Above is a code in java used for garbage collection. object
obj has been created for the class Garbage and system.gc
method is called. Then using that object add method is
called.System.gc method if called the obj should be garbage
collected? | | 6 |
| can we create a instance for intwerface? | | 2 |
| Name the types of mouse event listeners ? | | 2 |
| Different types of Layouts? | | 3 |
| What is an Exception ? | | 5 |
| What are the parameters used in Connection pooling? | IBM | 1 |
| |
| For more Core Java Interview Questions Click Here |