What is typedef in Java?

So, in C a “typedef” is a way to create (and name) custom data types . For something like a “typedef struct”, that is basically what a “class” is in Java. For a “typedef long int ….” there is no such thing — the only primitives in Java are the defined primitives.

Sizin İçin Seçtik  Why does Java not have macros?

Leave a Reply

Your email address will not be published. Required fields are marked *

What is typedef in Java?

So, in C a “typedef” is a way to create (and name) custom data types . For something like a “typedef struct”, that is basically what a “class” is in Java. For a “typedef long int ….” there is no such thing — the only primitives in Java are the defined primitives.

Sizin İçin Seçtik  What is declaration and definition in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *