<< Chapter < Page Chapter >> Page >

Answer and Explanation

Listings

I recommend that you open another copy of this document in a separate browser window and use the following links to easilyfind and view the listings while you are reading about them.

Miscellaneous

This section contains a variety of miscellaneous information.

Housekeeping material
  • Module name: Ap0040: Self-assessment, Logical Operations, Numeric Casting, String Concatenation, and the toString Method
  • File: Ap0040.htm
  • Originally published: 2002
  • Published at cnx.org: 12/02/12
  • Revised: 12/03/14
Disclaimers:

Financial : Although the Connexions site makes it possible for you to download aPDF file for this module at no charge, and also makes it possible for you to purchase a pre-printed version of the PDF file, youshould be aware that some of the HTML elements in this module may not translate well into PDF.

I also want you to know that, I receive no financial compensation from the Connexions website even if you purchase the PDF version ofthe module.

In the past, unknown individuals have copied my modules from cnx.org, converted them to Kindle books, and placed them for sale onAmazon.com showing me as the author. I neither receive compensationfor those sales nor do I know who does receive compensation. If you purchase such a book, please be aware that it is a copy of a modulethat is freely available on cnx.org and that it was made and published without my prior knowledge.

Affiliation : I am a professor of Computer Information Technology at Austin Community College in Austin, TX.

Answers

Answer 10

C. Sun Dec 02 17:35:00 CST 2012 1354491300781

Explanation 10

The noarg constructor for the Date class

The Date class has a constructor that takes no parameters and is described in the documentation as follows:

"Allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearestmillisecond."

In other words, this constructor can be used to instantiate a Date object that represents the current date and time according to the system clock.

A property named time of type long

The actual date and time information encapsulated in a Date object is apparently stored in a property named time as a long integer.

Milliseconds since the epoch

The long integer encapsulated in a Date object represents the total number of milliseconds for the encapsulated date and time, relative tothe epoch, which was Jan 01 00:00:00 GMT 1970.

Earlier dates are represented as negative values. Later dates are represented as positive values.

An overridden toString method

An object of the Date class has an overridden toString method that converts the value in milliseconds to a form that is more useful for a human observer, such as:

Questions & Answers

how does economics define me
clement Reply
what are the factors that determines the demand and supply
sillah
what are the importance of Economics
Betty Reply
tell me something very important about economics..
Fayaz Reply
how may I solve arithmetic mean ,,,all example
Cee Reply
what is agriculture
Itoe Reply
simple method of understanding cost concept
Oludare Reply
what is inflation
Christiana Reply
Inflation is a general increase in price levels
Zuko
is the action of inflating something
Abdifatah
inflation is the persistent increase in general price level of goods and services in an economy over a considerable period of time .
Tetteh
inflation is the general increase of a commodity in a particular period of time.
Turay
inflation is a general increase in price levels of commodities
shehu
what are the types of inflation?
Ebrima
inflation is the period of persistent rise in the general level of the price of goods services over time
Emmanuel
we have creeping inflation, demand pull inflation ,cost push inflation, and galloping inflation .
Emmanuel
how can a location of a firm create difference between producers
joy Reply
what is monetary policy
joy
hello
Abdifatah
is a monetary from policy that's authorized of country encharces
Abdifatah
What would you say about the the mobility of enterprise as a factor of production?
Cathryn Reply
how can I connect myself to this Ambrose platform
kanu Reply
I am good and you I am from sierra Leone and I am new her
kanu Reply
u are welcome bro, here is a good platform for you to be
Alie
That i know,thanks bro.
what the main definition of economic
Uhara Reply
the main definition is given by prof Lionel Robbins as a social science which studies human behavior between ends and scarce which have alternative uses
olajumoke
what covers macro economics.
Fayaz
Essay about Microsoft
Kwena Reply
what is economics
Julie Reply
what do you mean by means in economics
Julie
economic is the wealth of a country.
Moussa
monetary policy is refer to as being expansionary or contractionary.
Abdul
pls who can help me to explain money market and capital market
Au
money market is base on short term loan which is within one year period while capital market is long term loan more than one year...
Muhammad
money market is a market were short term loans are dealt with while capital market is a market were long term loans are traded
Ebrima
What is mean by monetory policy
Lovely
monetary polices are rules that control the rate of monetary exchange in an economic as a whole.
Ebrima
wealth of the nation
Uhara
important of unemployment
Otwe Reply
Important of unemployed
Otwe
important?
Aneela
While the American heart association suggests that meditation might be used in conjunction with more traditional treatments as a way to manage hypertension
Beverly Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!





Source:  OpenStax, Object-oriented programming (oop) with java. OpenStax CNX. Jun 29, 2016 Download for free at https://legacy.cnx.org/content/col11441/1.201
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Object-oriented programming (oop) with java' conversation and receive update notifications?

Ask