StackOverflow Questions for Tag: autoboxing

John Vint
John Vint

Reputation: 40256

Boxed Primitives and Equivalence

Score: 17

Views: 5492

Answers: 4

Read More
Niklas Rosencrantz
Niklas Rosencrantz

Reputation: 26661

What is the difference between autoboxing and coercion?

Score: 3

Views: 8726

Answers: 3

Read More
L. Blanc
L. Blanc

Reputation: 2310

Does having a wrapper object return value (e.g. Integer) cause auto boxing in Java?

Score: 9

Views: 476

Answers: 3

Read More
Marcel Overdijk
Marcel Overdijk

Reputation: 11467

How to use (primitive) autoboxing/widening with Hamcrest?

Score: 10

Views: 11834

Answers: 2

Read More
lacas
lacas

Reputation: 14067

Java convert Arraylist<Float> to float[]

Score: 54

Views: 88792

Answers: 3

Read More
Basil Bourque
Basil Bourque

Reputation: 339868

Why exactly does a `Comparator` using a primitive `int` work in this code? If auto-boxing, at what point does that happen?

Score: 1

Views: 186

Answers: 1

Read More
lowLatency
lowLatency

Reputation: 5664

Expand on this autoboxing explanation

Score: 3

Views: 1282

Answers: 4

Read More
bbotezatu
bbotezatu

Reputation: 25

BigDecimal output does not contain precise decimal values?

Score: 1

Views: 1434

Answers: 2

Read More
nimo23
nimo23

Reputation: 5698

Comparing "long" and "Long"

Score: 10

Views: 14986

Answers: 1

Read More
JGFMK
JGFMK

Reputation: 8904

Why does this code give a null pointer Exception? I thought Character class could handle null being assigned?

Score: -1

Views: 569

Answers: 1

Read More
mjuarez
mjuarez

Reputation: 16844

Just stumbled on java.util.Tripwire. It's been in Java since 1.8. Zero usages on Github. What could this be used for?

Score: 5

Views: 422

Answers: 1

Read More
user1968030
user1968030

Reputation:

Why do we use autoboxing and unboxing in Java?

Score: 97

Views: 78743

Answers: 10

Read More
lineage
lineage

Reputation: 895

JLS violations via Number and custom types for switch selector expression

Score: 1

Views: 73

Answers: 1

Read More
IcedDante
IcedDante

Reputation: 6842

Can I generate warnings when we try to compare Java boxed primitives with "==" instead of ".equals"?

Score: 2

Views: 179

Answers: 3

Read More
maplemaple
maplemaple

Reputation: 1725

Why does .contains(1) return false when called on a HashSet<Long> that contains 1l?

Score: 1

Views: 660

Answers: 2

Read More
Chiseled
Chiseled

Reputation: 2300

Performance implications of autoboxing on ArrayList of primitive wrappers

Score: 2

Views: 889

Answers: 3

Read More
A1122
A1122

Reputation: 1354

How to count the number of boxing and unboxing operations

Score: 0

Views: 103

Answers: 1

Read More
Sanskar Dhingra
Sanskar Dhingra

Reputation: 67

Comparing Integer and int with ==

Score: 4

Views: 2352

Answers: 3

Read More
Allen
Allen

Reputation: 11

Why the code that the compiler approves but cannot be run by JVM?

Score: -1

Views: 299

Answers: 2

Read More
armnotstrong
armnotstrong

Reputation: 9065

how to get equality behavior with autoboxing comparing with Object and int as Java 7 with Java8

Score: 0

Views: 61

Answers: 2

Read More
PreviousPage 2Next