title: Is it possible to add an image (png) as an attribute of a Java class?
body: <p>I haven't really explored this part of Java. Can I create a class, say Student which has all his/her details like name, id and all but in addition to that, can I store their photo as well, as a data member?</p>
  
  <p>Basically, whenever I create a Student object, I pass in a picture as one of it's arguments? </p>
  
  <p>So, the question is, what is the most standard and the best (in your opinion) way to handle such image objects?</p>
  
  <p>I'm comfortable with Java Swing classes, so if it can be done using that, it will be awesome.</p>