- 
                    If there are more than one main method in a program, then which main method will be called.what will be the output 
 
 class A
 {
 public static void main(String args[])
 {
 System.out.println("Hi friend");
 
 }
 }
 
 class Test
 {
 public static void main(String args[])
 {
 System.out.println(" How are you");
 }
 }
 
 
- 
                    Which of the following are valid types of COM serversA: In-process B: Local and remote C: All of the above D: None of the above 
- 
                    
- 
                    Memory AllocationWhat is the difference between below 2 statements? 
 String s1=new String("abc");String s2="abc";How it will allocate in memory?
- 
                    
- 
                    Exception HandlingWhat is the output of the following program, When tested under JDK 5.0class ExceptionDemo{ public static void main(String[] args) { int a[] = new int[] {1,2,3,4,5}; try{ System.out.prinltln(a[6]); } catch(Exception e) { System.out.println("Catching Exception ..."); } catch(ArrayIndexOutofBoundsException ae) { System.out.println("Catching ArrayIndexOutOfBounds... 
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    
- 
                    Abstract - How do you make objectIf all the methods in the Abstract class is defined, then it is a Abstract class? And can we make object out of it? 
- 
                    Sort an Arraylist having Group of ObjectsEmployee object having emp name, emp id, emp salary... An arraylist has a list of employee object.How will you sort this arraylist? 
- 
                    
- 
                    
Core Java Interview Questions

 
  
  
  Read Best Answer
                        Read Best Answer 
		
Ans