Programming Interview Question


Question: What the below func would return?

int Add()
        {
            int z = 0;
            try
            {
                int x = 3;
                int y = 5;
                z = x + y;
                return z;
            }
            finally
            {
                z = 65;
            }

        }

Comments

Post a Comment

Popular posts from this blog

iframe vs embed vs object in HTML 5

Constructor in c#

What is the need of method overriding ???