(1) What is the difference between "step over" and "step in" in a debugger?




(2) How does one allocate a new object in Java? Give an example?




(3) Which statement is true regarding the following code,
class Alpha
{
	int i;

	Alpha()
	{
	}
}

class Beta extends Alpha
{
	int j;

	class Beta()
	{
	}
}








(4) What will be the output of this code?
class Test
{
	void inc(int i)
	{
		i++;
	}

	public static void main(String[] args)
	{
		int i = 5;
		inc(i);
		system.out.println(i);
	}
}








(5) What will be the output of this code? (Hint: The answer to this question is not the same as the answer to the previous question.)
class Wrapper
{
	int i = 5;

	void inc()
	{
		i++;
	}
}

class Test
{
	public static void main(String[] args)
	{
		Wrapper w = new Wrapper();
		w.inc();
		system.out.println(w.i);
	}
}