Which of these correctly defines a constructor in the class Student?
• PUBLIC STUDENT ()
• public STUDENT ()
• PUBLIC student()
• public void Student()
• public Student()
All Java keywords are lowercase so public must be lowercase. A constructor must have the same name as the class and all Java classes should start with an uppercase letter. Constructors do not have a return type so the only correct one is the last one.
You might also like to view...
Access points and wireless devices must exchange information in order to create and acknowledge the MKs and the GKs. This exchange of information is known as ____.
A. WPA exchange B. GK encryption C. handshakes D. MK exchange
Level 1 cache is located farther away from the CPU than Level 3 cache
Indicate whether the statement is true or false
Word tables can do all of the following EXCEPT:
A) perform simple calculations. B) convert text to table format. C) sort data. D) embed macros.
The ________ logical operator allows you to specify two conditions for a filter and will display results when either condition is true
Fill in the blank(s) with the appropriate word(s).