File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes The Data Type of Some Variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "The Data Type of Some Variables" Watch "The Data Type of Some Variables" New topic

The Data Type of Some Variables

Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
Hi, I have two questions relating to the data types:

1. If the method invocation on an instance returns a variable "result", which is a file in the JSON format. What is the data type of "result"?
2. If a method returns an "Atom Feed" document; which is given a varible name "document". The generate this document, the Java class has to with a JAR on the class path. What is the data tye of this "document". Is it "Feed"?

Thank you.

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15092

Those questions are impossible to answer without any more context. You should have a look at the definition or API documentation of the methods you're calling.

If a method is declared as:

then the data type of the return value is Something.
I agree. Here's the link:
subject: The Data Type of Some Variables
It's not a secret anymore!