| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Hi Friends..
can any one provide the real time example for
methodoverloading and methodoverriding ......... | Honeywell | 2 |
| What is the basically use of finally while we know it
is always executed but why? | TCS | 4 |
| What is multiple inheritance & can we implement it in java? | Satyam | 4 |
| Name two subclasses of the TextComponent class? | | 2 |
| What are wrapped classes? | | 6 |
| 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 |
| what is custom tags with example? | AMDOC | 1 |
| Can try statements be nested? | Wipro | 2 |
| What is meant by throwing an Exception? | Accenture | 4 |
| What we have to do, when we don't want to implement all
methods of an interface? | | 2 |
| what is meant by UP& DOWN casting in java? | | 4 |
| How are this and super used? | | 6 |
| How to prevent a field from serialization ? | | 2 |
| What are the latest versions in JAVA related areas? | Netcraft | 2 |
| What are Encapsulation, Polymorphism and Inheritance? | | 2 |
| what is mean by String and StringBuffer?
What is mean by Methooverriding and Overloading?
| Satyam | 2 |
| If two threads call a static method at the same point of
time, what will happen? | KPIT | 1 |
| How many ways can an argument be passed to a subroutine? | | 2 |
| What is the life cycle of Thread ? | HCL | 7 |
| What are init(), start() methods and whey they are called? | | 2 |
| |
| For more Core Java Interview Questions Click Here |