Skip to content

6 Weeks - [Primitive Type & Generic Type] #89

@junhochoi-dev

Description

@junhochoi-dev

문제

  • 자바에서 데이터 형을 기본형 (Primitive Type)과 객체형 (Generic Type)으로 나눈 이유에 대해서 궁금하고 나눠서 사용했을 때의 특징에 대해서 궁금합니다.

contents - 세부 내용

CPP에서는 vector<int>, stack<int>, queue<int> 등 기본형 (Primitive Type)으로 컨테이너 내의 데이터형을 정의합니다.
JAVA에서는 ArrayList<Integer>, Stack<Integer>, Queue<Integer> 등 객체형 (Generic Type)으로 컨테이너 내의 데이터를 정의합니다.
각 언어의 장단점이 있겠지만 JAVA의 컨테이너 내의 데이터 형을 객체형 (Generic Type)으로 정의한 이유와 장단점에 대해서 논의해보고 싶습니다.

참고

p.650 ~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions