title: create unique id without using constructure and setters
body: <pre><code>class person {
  
     private  int id ;
      private String name;
      private boolean gender;
  
      public person() {
  
      }
  
  
      public AtomicLong getId() {
          return id;
      }
  
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public boolean isGender() {
          return gender;
      }
  
      public void setGender(boolean gender) {
          this.gender = gender;
      }
  
  }
  </code></pre>
  
  <p>I want to create unique id in this class without using constructors and setters.</p>