Question: Given the following code: | Date d1 new Date( 12, 8, 2017 ); Date d2 new Date( 12, 8, 2017); if ( d1 d2) (

Given the following code: | Date d1 new Date( 12, 8, 2017 ); Date d2 new Date( 12, 8, 2017); if ( d1 d2) ( System.out.println( "Dates are equal!" ); else f System.out.println( "Dates are not equal!" ); Explain what the output would be and why the code would generate that output. U A Paragraph
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
