objects
5 tutorials tagged “objects”.
- Anonymous ObjectsObjects created and used in one expression without a variable: when they're handy, why you can't reuse them, and how they differ from anonymous classes.
- Classes and ObjectsHow to write a class with fields and methods, create objects from it with new, give each object its own state, and keep classes in their own files.
- Difference Between Object and ClassClass vs object side by side: blueprint vs instance, loaded once vs created many times, where each lives in memory, and the classic interview answer.
- Ways to Create Objects in JavaThe five ways to get an object: new, a factory method, reflection, clone() and deserialization, and which of them run a constructor.
- Array of ObjectsArrays that hold objects: why a new array of objects is full of null, creating each object, looping over them, and the NullPointerException trap.