PlacementPapers.asia

Placement Papers 2008,2009,2010 for Freshers.Largest Collection of IT Companies Placement Papers and Interview Questions in india. Latest Placement Papers of IT and Non-IT Companies.




Categories

Links

  • Bob
    Technologies placement paper

    Questions
    Question 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 words “My Func”
    2) The compiler [...]

    1 Comment