-
-
Output of Java Program
What is the output of the following program?class A{ public static void main(String[] s) { System.out.println(s[1] + s[2] + s[3]);}}java A 12345Options(i) 1(ii) 12(iii)1234(iv)234(v) Compilation Error
-
-
-
-
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
-
-
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)); }}
-
Overriding Methods
Suppose a Super Class method throws an exception and this method is Overriden in the subclass with no exception. Now if you create a super class reference that has a subclass object. This throws a compile time error, Why?
-
-
-
What is the Output of the following Java Program
public interface I1{Static String x="inside I1";public void someMethod();}class A implements I1{ public static void main(String args[[]){ System.out.println("Calling I1 var ..."+I1.x);}}
-
Object Creation
In how many ways we can create an object? Explain with example.
-
-
-
-
-
Null keyword
Is null a keyword? if not what is it?
-
Need of Polymorphism
What is need of polymorphism in Java? What could have happen if polymorphism is not present?
-
Core Java Interview Questions
Ans