Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The Data Type of Some Variables

 
Natalie Kopple
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15214
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic