Java Programming and Technical

Can we access the non-final local variable, inside the local inner class?

Read Solution (Total 3)

Java Other Question

What do you mean by multithreading? public class Test
{
public static void main(String[] args)
{
int x = 0;
assert (x > 0) : "assertion failed"; /* Line 6 */
System.out.println("finished");
}
}

A. finished
B. Compilation fails.
C. An AssertionError is thrown.
D. An AssertionError is thrown and finished is output.