Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
String is not reference Type??
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { String s = new String("Hi"); String y = s; y = "hello"; System.out.println(s); } }
run
|
edit
|
history
|
help
2
Pipes
Initials
Linked List creation
Link document
Account JAVA Cpa
Recursive list fields
4.b
fb_series
test1
Scope