javadata-structures

Does Java support structs?


Does Java have an analog of a C++ struct:

struct Member {
  string FirstName; 
  string LastName;  
  int BirthYear; 
};

I need to use my own data type.


Solution

  • Java definitively has no structs :) But what you describe here looks like a JavaBean kind of class.