This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 14950

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.
Have you checked out Aspose?
subject: The Data Type of Some Variables
It's not a secret anymore!