197k views
2 votes
what is the output of the following program? import java.util.date ; public class test { public static void main (String [] args) { date date = new date (1234567) ; m1(date) ; system.out.print (date.getTime () + "" ) ; m2(Date) ; system.out.println (date.getTime()) ; }

User Caliche
by
6.2k points

1 Answer

1 vote

Answer: 1234567 7654321

Step-by-step explanation:

Firstly date was declared and initialize as 1234567, declared means hive date a specific value.

then the statement reverse specific date value to(7654321)

User Lokinou
by
6.1k points