Array vs ArrayList
Array | ArrayList |
Fixed-size | Size is not fixed |
Not type-safe | Type-safe |
Allow both primitives and objects | Doesn't allow primitives. But after Java 5 auto-boxing will convert primitives to objects |
Home » typesafety » Array vs ArrayList
June 27, 2021 Ravi Yasas
Array | ArrayList |
Fixed-size | Size is not fixed |
Not type-safe | Type-safe |
Allow both primitives and objects | Doesn't allow primitives. But after Java 5 auto-boxing will convert primitives to objects |
array / arraylist / beginner / collection framework / collections / devloper / typesafety
@OneToOne The best approach to bidirectional @OneToOne is to use @MapsId Student entity @Entity @Data @Table(name = "students") pu...
0 comments :
Post a Comment