Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following Java declarations ( assume classes People, Student and Worker as discussed in Example 3 . java ) People P 1 = new

Consider the following Java declarations (assume classes People, Student and Worker as discussed in Example3.java)
People P1= new People("Herbert","1/1/2024");
People P2= new Worker("Mortimer","2/2/2000",100000);
People P3= new Student("Abigail","3/3/2005", "Data Science", 3.5);
String S1= new String("Margaret");
Which Java expressions below are NOT legal? Indicate all expressions that are not legal.
Multiple answers: Multiple answers are accepted for this question
Select one or more answers and submit. For keyboard navigation... SHOW MORE
a P1.compareTo(P2)
b P1.compareTo(P3)
P2.compareTo(P3)
d P1.compareTo(S1)
e S1.compareTo(P1)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions

Question

2. List the advantages of listening well

Answered: 1 week ago