python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why lower bound(<? super T>) is mutable and upper bound not (<? extends T>) in Java
I'm trying to understand Java Generic so I ended up with not able to understand why lower bound type can be mutable and upper bound types not.
The example I have:
List<? extends String> upperBou...
Ahmad Alhaj-Karim
Votes: 0
Answers: 0
Converting immutable to mutable map java
I have an immutable map that I get from the method in another part. And when processing I want to delete a key from it and then use it further, the key is always on the map.
ImmutableMap<String...
oescc
Votes: 0
Answers: 1
Are there caveats of using mutable types as default parameters in functions in Python?
I have recently read about mutable default parameters in Python.
For some reason, I came up with an idea of using it like this:
data = [3, 4, 1, 8, 5, 9, 2, 6, 7]
def get_min(checked=[]):
global...
Oleksandr Novik
Votes: 0
Answers: 1