Answer the question
In order to leave comments, you need to log in
What is the best String to use?
String name = "Dan";
Or
public static String name()
{
String myName = "Dan";
return myName;
}
Answer the question
In order to leave comments, you need to log in
This function is an example Referential Transparency
.
When they are needed, and when not - read for yourself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question