| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is Marker interface in java? and what is clone? | Wipro | 7 |
| What are teh sub-classes of a component class? | | 2 |
| Name the methods that used to get and set the text label
displayed by a Buttonobject? | | 1 |
| What error occurs if a try-catch-finally statement sequence
does not have a catch clause? | | 2 |
| can you program for reverse string? | IBM | 5 |
| 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 are interfaces? | | 1 |
| What is the use of bin and lib in JDK? | | 3 |
| Which class should you use to obtain design information
about an object | | 2 |
| Which containers use a FlowLayout as their default layout? | | 3 |
| In Serialization, whether you will use Static variables? | HCL | 2 |
| can we create a instance for intwerface? | | 3 |
| Explain about Superclass and Subclass? | | 4 |
| What is meant by serialisation and deserialisation? | | 3 |
| whays is mean by inner class? | HCL | 3 |
| What is multiple inheritance & can we implement it in java? | Satyam | 4 |
| what is overloading in java? | DNS | 4 |
| Explain the difference between the Boolean & operator and
the && operator? | | 1 |
| What is method Overloading in the perspective of OOPS? | | 4 |
| What is difference between abstract class & final class | | 5 |
| |
| For more Core Java Interview Questions Click Here |