Login with  Log in with facebook
Hiring Manager? SIGN UP HERE
3

public class Test {

private static final String testString = null;

public static void main(String[] args) {

testString = "test123";

}

}

Rishi Yadav
08/10/2011 at 22:30
4 Answers
1
0

you can't try to modify a final static variable....

Ashish Bhargawa
08/11/2011 at 09:42

2
0

"testStrign" is final variable and you cant change its value.

Atul More
08/12/2011 at 01:53

3
0

'testString' is marked as final it can not have other value.

Amit Srivastava
08/18/2011 at 05:35

4
0

 The final field test.testString cannot be assigned . Final variables cannot be modified or reinitialized.

Sharmila Rangaraj
08/29/2011 at 04:48

If you want to post any answer to this forum then you need to log in.
Schedule a Demo

Schedule a Demo with us

Name *
Email *
Phone *
Company *
Details