[HD Pg 326, Sec. 12.1.1 - creating-strings-through-concatenation]

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
OCAJO1
Posts: 221
Joined: Mon Nov 26, 2018 2:43 pm
Contact:

[HD Pg 326, Sec. 12.1.1 - creating-strings-through-concatenation]

Post by OCAJO1 »

Is there a time when + operator is better than concat() method (or visa versa) to concatenate two strings in Java? Thanks

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD Pg 326, Sec. 12.1.1 - creating-strings-through-concatenation]

Post by admin »

It is better in terms of ease of use and code readability but other than that not much.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 89 guests