-
-
-
-
When does the String Literal pool gets cleared?
In one java class I have created this string String s1 = "abc";Now if I again use this same statement in a different java class, ie;String s2 = "abc";Will I get the same reference for "abc" in both the classes.
-
Abstract class and interfaces
Where should we use exactly abstract class and interfaces?
-
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 servers
A: In-process B: Local and remote C: All of the above D: None of the above
-
-
Memory Allocation
What is the difference between below 2 statements?
String s1=new String("abc");String s2="abc";How it will allocate in memory? -
-
Exception Handling
What 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...
-
-
-
-
-
-
-
-
Taking the Build.
What is mean by taking "build"? And Which processes and modules of an application involved while taking Builds.
-
Core Java Interview Questions
Ans