Question: 42. Assume that date 1 and date 2 are objects of class I nc Date as defined in Section 1.4. What would be the output

 42. Assume that date 1 and date 2 are objects of

42. Assume that date 1 and date 2 are objects of class I nc Date as defined in Section 1.4. What would be the output of the following code? da te 1 = new I nc Date ( 5,5, 2000); da te 2 = new I nc Date (5,5, 2000); if( da te1=date 2) System.out.println("e qua1"); else System.out.println(" not e qua1"); da te 1 = date 2; if(da tel=da te 2) System.out.println("e qua1"); else System.out.println("not e qua 1"); da te 1. i ne r eme nt(); if( da te l=date 2) System.out.println("e qua1"); else System.out.println("not e qua1")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!