jQuery in Action, 2nd edition*
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
Author

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: 14074
    
  16

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.
 
Don't get me started about those stupid light bulbs.
 
subject: The Data Type of Some Variables
 
Similar Threads
java.lang.ClassCastException:
How to set a time limit on a java function running a regex
Xerces and DOM 2
Urgent: Please Help!! Ways to cast String to Resource (org.springframework.core.io.Resource)
Reading xml data in JSP