I read from the documentation about how uri can provide more efficient way of creating url but I am confused as of what's the difference between the following 1, 2 and 3 method?
1)Build url using Uri.Builder. Example:
Uri.Builder.scheme("https")
.authority("abc.example.com")
.appendPath("search")
.appendQueryParameter("id", "123")
.appendQueryParameter("name", "dummyText")
.build();
2) using Uri.parse. Example:
Uri.parse("https://abc.example.com/")
.buildUpon()
.path("search")
.appendQueryParameter("id", "123")
.appendQueryParameter("name", "dummyText")
.build();
3) concatenating Strings with similar parameters above.