Skip to content

Commit 17e19a0

Browse files
Update string.java
1 parent a3c3853 commit 17e19a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

string.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
//s will only print abhishek and not concat sharma because s is only reffred to string abhishek not on abhishek sharma
2-
public class string {
3-
public static void main(String[] args) {
2+
public class string
3+
{
4+
public static void main(String[] args)
5+
{
46
String s="abhishek";
57
s.concat("sharma");
68
System.out.println(s);

0 commit comments

Comments
 (0)