Interview Questions - 26-01-2018

Techchef

1. String s="ABC"
     String s1="BC"

output1 : A

2. String a[][]={{u1,u2},{u3,u4},{u2,u1},{u1,u5},{u4,u3}}

output: {{u1,u2},{u3,u4},{u1,u5}}

3. Allow 5 object creation, should fail when try to create 6th instance.

Comments