# Ja-WAT?

- Speaker: [ALLON MUREINIK](/wiki/speakers/allon-mureinik.md)
- Event: [Reversim Summit 2016](/wiki/years/2016.md)
- Video: https://www.youtube.com/watch?v=R_M7IgtwRO4
- Transcript: [/transcripts/2016/46-R_M7IgtwRO4.md](/transcripts/2016/46-R_M7IgtwRO4.md)
- Language: Hebrew · Type: ignite · Level: intermediate
- Topics: [Software Engineering](/wiki/topics/software-engineering.md), [Debugging](/wiki/topics/debugging.md), [Java](/wiki/topics/java.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker explores unexpected quirks and confusing behaviors in the Java programming language through humorous examples, drawing inspiration from a well-known talk about Ruby and JavaScript. By examining edge cases with list operations and string concatenations, the speaker demonstrates that even a strictly typed language with a compiler can produce bizarre results. The audience learns not to overestimate the language's ability to prevent logical pitfalls and developer errors.

## Key points

- [0:09](https://www.youtube.com/watch?v=R_M7IgtwRO4&t=9s) The speaker introduces the talk by drawing inspiration from a famous talk that highlights broken things in Ruby and JavaScript.
- [1:17](https://www.youtube.com/watch?v=R_M7IgtwRO4&t=77s) Basic operations on an ArrayList with Strings behave completely as expected and yield correct string representations.
- [2:22](https://www.youtube.com/watch?v=R_M7IgtwRO4&t=142s) Performing similar remove and add operations using character collections results in unexpected and confusing output.
- [3:22](https://www.youtube.com/watch?v=R_M7IgtwRO4&t=202s) String concatenation involving characters and numbers produces surprising arithmetic conversions rather than expected text combinations.
- [4:24](https://www.youtube.com/watch?v=R_M7IgtwRO4&t=264s) The speaker concludes that no compiler or robust language can fully protect a codebase from determined developer mistakes.

## Takeaways

- Even strongly typed languages like Java have edge cases and unintuitive behaviors.
- Implicit type conversions during concatenation can lead to unexpected runtime results.
- No programming language or compiler can completely prevent developer-induced errors.

## Questions this talk answers

- What causes unexpected results when performing list operations with characters in Java?
- How does Java handle type conversion during string and character concatenation?

## Technologies

Java

## Tags

debugging, java, language design, programming quirks, type systems
