Java Project
- Create a NetBeans project for thisactivity.
Test Stem / Question
Choices
1: Create a new class with attributes name and address. Bothdata type will be String. Create a constructor and assign theparameters to the attributes.
Now override the toString() method.
Is this possible?
A: Yes.
B: No.
C: In some cases where the attributes are only strings.
D: Yes, as long as you explicitly extends Object class.
2: Create a class with the main method and create an instance ofthe class that you created in Test Stem
1. What method can you call to get the hashCode of yourclass?
A: hashCode()
B: getHash();
C: getHashCode();
D: toHashCode();
3: What is the return type
PayPal Gateway not configured
PayPal Gateway not configured