| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is filters and its use? | Virtusa | 2 |
| Can we access a database using applets? | | 2 |
| What is a native method? | | 2 |
| What is the difference between the >> and >>> operators? | | 1 |
| What is the return type of a program?s main() method? | | 2 |
| what do you meant by Platform-Independent? | Persistent | 4 |
| What are command line arguments? | | 3 |
| what is difference between Exception and Error? | | 15 |
| what is hashmap& hashtable with example? | CTS | 1 |
| how u do unit testing? | iFlex | 2 |
| what is difference between abstraction and interface?
| FIC | 6 |
| Why do we use public static with the main function in Java? | Infosys | 7 |
| What are blocks?. | TCS | 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 |
| Thanks A.jyotsna,
Can u tell me differnce between abstract class and interface
vikash | | 3 |
| How to prevent a field from serialization ? | | 2 |
| Linked List reverese program | Bally-Technologies | 1 |
| what is the use/perpose of having a method antive? | | 2 |
| How multi processing is achieved in JAVA? | BMC | 4 |
| What is unicode? | | 1 |
| |
| For more Core Java Interview Questions Click Here |