Java-J2SE Example
What is the output of this code ?
class PassS
{
public static void main(String [] args)
{
PassS p = new PassS();
p.start();
}
void start()
{
String s1 = "slip";
String s2 = fix(s1);
System.out.println(s1 + " " + s2);
}
String fix(String s1)
{
s1 = s1 + "stream";
System.out.print(s1 + " ");
return "stream";
}
}
Blog url change please check this all past post here.
http://avanish1707.blogspot.in/
Hello guys blog available for this page. Page have lots of Java example. Please like and if you need some new example you can comment your question in any post.
15/05/2015
Click here to claim your Sponsored Listing.
Category
Address
Delhi
110092