| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How to add panel to a Frame? | | 2 |
| Explain Event handling in AWT? | | 1 |
| What is System class and its purpose? | | 2 |
| what is the Diff. between Access Specifiers and Access
Modifiers? | Wipro | 10 |
| What is the difference between this() and super()? | TCS | 5 |
| How many bits are allocated to represent character of
character sets - Unicode, ASCII, UTF-16, UTF-8? | | 1 |
| Can you call a private data from an inner class? | | 3 |
| Difference between the paint() and repaint() methods? | | 1 |
| what are the jsp tags with example? | Photon | 1 |
| what is synchronization
| | 2 |
| Different types of Layouts? | | 3 |
| 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 |
| finalize() method? | | 3 |
| Which class is extended by all other classes? | | 2 |
| 1).what is the difference between below examples
String s="vijay";
String s=new String("vijay"); | TCS | 11 |
| In what types of operations an ArithmeticException will be
thrown? | | 2 |
| what is Portal(web based online portal)? | AIG | 1 |
| why the wait,notify,notifyall methods are placed in object
class?these are the thread concepts why these methods are
placed in Object class? | | 2 |
| How u dubugg ur project? | iFlex | 1 |
| What is a class ? | | 8 |
| |
| For more Core Java Interview Questions Click Here |