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

Archives

Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites

Blogs

Furls

Links

vinCitori

Quiz Sharp #44

using System;
using System.Threading;

class Foo
{
    static void Main()
    {
        try
       
{
            try
           
{
                try
               
{
                    Thread.CurrentThread.Abort();
                }
                catch
               
{
                    Console.Write(1);
                }
                finally
               
{
                    Thread.ResetAbort();
                }
            }
            catch
           
{
                Console.Write(2);
            }
        }
        catch
       
{
            Console.Write(3);
        }
    }
}

Cosa viene visualizzato a console e perché?

  • A. niente
  • B. errore a run-time
  • C. 1
  • D. 12
  • E. 123

Lasciate le vostre risposte, come al solito, nei commenti.

Print | posted on sabato 29 gennaio 2005 21:09 | Filed Under [ Quiz Sharp ]

Powered by:
Powered By Subtext Powered By ASP.NET