Programmer Question
For example:
public Person newPerson() {
Person p = new Person("Bob", "Smith", 1112223333);
return p;
}
as opposed to:
public Person newPerson() {
return new Person("Bob", "Smith", 1112223333);
}
Is one more efficient than the other?
Find the answer here
No comments:
Post a Comment