How do the two different ( overloaded ) versions of theString class\'s substring
ID: 3613963 • Letter: H
Question
- How do the two different (overloaded) versions of theString class's substring() method work? Write a fragmentof code that shows each being used (specify the original string andwhat the substring result of a given call would be). Hint: use theJava class documentation.
- How should you check for two strings being equal rather thanusing the "==" comparison? (an oldie butgoodie
- Say you wanted to use the built-in library class "Socket" thatcomes with Java. Write the "import" command you would need to makethat class available for your use (hint: look in the classdocumentation).
- Briefly, what is a Java "map"?
- Locate and give an example of a JavaDoc comment that includesat least one "@param" value and one "@return" value.
- Is "loose coupling" or "strong coupling" more desirable inprogramming? Briefly explain why.
Explanation / Answer
..
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.