Java-J2SE Example

Java-J2SE Example

Share

10/03/2017

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";
}
}

27/09/2016

Blog url change please check this all past post here.

http://avanish1707.blogspot.in/

18/03/2016

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.

Photos 15/05/2015
Want your school to be the top-listed School/college in Delhi?
Click here to claim your Sponsored Listing.

Category

Address


Delhi
110092