-
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");
}
}
-
-
-
-
-
-
Find the Output
class A{ public static void main(String[] a){ System.out.print(String.valueOf(1)+String.valueOf(2)); String s1="s1"; String s2=s1.toString(); System.out.print(","+(s1==s2)); }}
-
-
-
-
-
-
-
-
What will be the result and why
int i=10;i=i++;System.out.println(i);
-
JVM is platform independent/dependent? why?
which one is faster in execution Array List or Array? why?
-
-
-
-
Why java is not 100% object oriented language??
i have not ..asked in TCS interview ..if any one have plz answer me on er.anuj.mittal@gmail.com
Core Java Interview Questions
Ans