Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links


Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites





Quiz Sharp #34 (Corey McGlone)

using System;

class Test
  static void DoIt(int a, long b, long c)
    Console.WriteLine("In DoIt(int, long, long)");

  static void DoIt(int a, int b, long c)
    Console.WriteLine("In DoIt(int, int, long)");

  static void Main()
    DoIt(1, 2, 3);

What is the result of compiling and executing the above code?

  • A. Prints "In DoIt(int, long, long)"
  • B. Prints "In DoIt(int, int, long)"
  • C. Compiler Error
  • D. Run-Time Error

In Java si ottiene lo stesso risultato - guardate solo dopo aver pensato ad una risposta :-)

Print | posted on venerdì 20 agosto 2004 00:30 | Filed Under [ Quiz Sharp ]

Powered by:
Powered By Subtext Powered By ASP.NET