Java Quiz no1

Consider the following code

[code language=”java”]

public class JavaApplication4 {

* @param args the command line arguments
public static void main(String[] args) {

String testValue = "1";

  testValue = "2";
}catch(Exception e){

testValue = "3";



What will be the value of testValue at the end of execution?

Passionate Archer, Runner, Linux lover and JAVA Geek! That's about everything! He has worked for many years as an Software Architect designing and developing enterprize projects, e-banking and high availability portals with extensive experience in the public, european and private sectors. Having speaker in several confrences he never misses opportunities to interact with the OSS community. In his leisure time he either runs or shoots a lot of arrows!