Posted inPlacement Papers

Bob Technologies Placement Paper

Bob Technologies Placement Paper Company: Bob Technologies Questions 1)What will happen when you attempt to compile and run this code?abstract class Base{abstract public void myfunc();public void another(){System.out.println(“Another method”);}} public class Abs extends Base{public static void main(String argv[]){Abs a = new Abs();a.amethod();}public void myfunc(){System.out.println(“My Func”);}public void amethod(){myfunc();}}1) The code will compile and run, printing out the […]

Posted inPlacement Papers

Bob Technologies Placement Paper 1st Oct 2003 at Allahabad

Bob Technologies Placement Paper Company: Bob Technologies 1)Which of the following lines will compile without warning or error.1) float f=1.3; 2) char c=”a”; 3) byte b=257; 4) boolean b=null; 5) int i=10; 2)What will happen if you try to compile and run the following code?public class MyClass {public static void main(String arguments[]) {amethod(arguments);}public void amethod(String[] […]