Post

🌒 Eclipse IDE
🌒 Eclipse IDE@EclipseJavaIDE·
Indeed this will fail to compile because a static modifier cannot be applied to a local variable!
English
0
0
0
0
yfw 風来
yfw 風来@fishhuuraijapan·
@EclipseJavaIDE @java Hah, I thought this is a new java feature to apply static modifier to a local variable
English
0
0
0
0
ST
ST@stakReal·
@EclipseJavaIDE @java static variables are not allowed inside method ..all static variables are class scope and instance variables and methods are specifc to object of that particular class.
English
0
0
0
0
Bijees
Bijees@thebijeesraj·
@EclipseJavaIDE local variables can't have static modifiers. <Compilation Error>
English
0
0
0
0
Farah Saif
Farah Saif@sw_engineer·
@EclipseJavaIDE How you guys concluded to 0 or 1? its "illegal start of expression"
English
0
0
0
0
jay nair
jay nair@prabhuko·
@EclipseJavaIDE @java Compile time error...it is illegal to declare/initialize local static variable in method
English
0
0
0
0
Winson OUHK
Winson OUHK@Winsonrich·
@EclipseJavaIDE @java Compilation Error, you should state which class when calling static method and static variable
English
0
0
0
0
Paylaş