Which of these is the correct class definition for a Teacher class?

• public CLASS Teacher
• public class Teacher
• public class TEACHER
• public class Teacher []
• public class Teacher extends Object, Person


All Java keywords are lowercase and class names start with an uppercase letter. So the second one is correct. The last one tries to extend two classes and this isn’t allowed in Java. A class can only have one parent class.

Computer Science & Information Technology

You might also like to view...

Which of the following is an advantage of using McAfee’santivirus software?

A) It’s affordable. B) It’s easy to use and configure. C) It offers different versions for different types of vulnerabilities. D) All of the above

Computer Science & Information Technology

Which important networking troubleshooting tool is part of ICMP, and how does it test a network connection?

What will be an ideal response?

Computer Science & Information Technology

The systems analyst can support accurate data entry through achievement of all these broad objectives except:

A) effective screen design. B) effective and complete data capture. C) efficient data capture. D) assuring quality through validation.

Computer Science & Information Technology

Static text cannot be changed after the document plays in Flash Player.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology