-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
Learn Java with Projects (worth $44.99) but free in exchange for your email
By News Staff,
- packt
- ebook offer
- (and 2 more)
- 0 replies
- 2 views
-
JavaScript from Frontend to Backend ($20.99 Value) FREE for your work email
By News Staff,
- ebook offer
- sponsored
- (and 3 more)
- 0 replies
- 2 views
-
- 0 replies
- 2 views
-
Job Ready Java ($24 value) free download for a Limited Time
By News Staff,
- ebook offer
- java
- (and 1 more)
- 0 replies
- 2 views
-
Transitioning to Java ($35.99 Value) FREE eBook download
By News Staff,
- sponsored
- ebook offer
- (and 1 more)
- 0 replies
- 2 views
-
Question
SirEvan
This is probably a really noobish question, but I don't know what to type in google to find the answer.
Is there a benefit performance or memory usage wise by doing the following:
Instead of:
final DateTime dt = new DateTime();
final String dayOfTheWeek = String.valueOf(Globals.DayFormat.print(dt));[/CODE]
basically saving declaring the first variable and then using it in the second line? Or does it not really matter? I know variable declaration is costly, but not sure if doing the first thing is the equivalent of the second.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts