Check out example codes for "how to make an objec tjava". It will help you in understanding the concepts better.

Code Example 1

class Puppy() {
	String name;
	int age;
 	Puppy(String puppy_name, int puppy_age) {
    	name = puppy_name;
   		age = puppy_age;
  	public static void main(String[] args) {
     	Puppy rex = new Puppy("rex",4); 

Learn ReactJs, React Native from