D
D
DeNissss44442022-03-08 23:37:11
Java
DeNissss4444, 2022-03-08 23:37:11

What is an example of the standard library where String is used?

At one of the interviews, they asked a rather unusual question that drove me into a stupor =) You can get an example of the standard library where it is used from your head. String. And collections - HashMap, HashSet . Since I am a novice developer, I did not answer this question. When I started to google it, I did not find direct answers to it either. Tell me please)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Gornostaev, 2022-03-08
@sergey-gornostaev

You somehow misunderstood the question, for sure. Java has only one standard library, and the String class is part of it.

D
Dmitry Roo, 2022-03-09
@xez

String is pretty simple. StringBuilder and StringBuffer immediately come to mind.
HashMap is used in HashSet (i.e. HashSet is a "truncated" HashMap).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question