A question from the Java Inquisition

http://enigma.vm.bytemark.co.uk/inquisition/index.php/Main_Page

 

Try it.

 

Whats wrong here?

 

 public static void main(String... args)
    {
        ArrayList a = new ArrayList();

        a.add("Wohow someone smells stinky!");
        a.add(5);
       
        ArrayList<Integer> biebabeloeba = a;


        System.out.println(biebabeloeba.get(1));
        System.out.println(biebabeloeba.get(0));
    }

 

 

Does this compile ? (answer YES).

Does it throw an exception during runtime (answer NO).

Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com