Q:

Is it possible to have folders in AWS S3 bucket?

I am very very new to AWS S3.
I have the following questions,
Question 1) Is it possible to have folders and sub-folders in S3 buckets?
    For e.g. as below:
  
Here **Root folder 'Folder' has 2 sub-folders and a file. Then Sub-folder1 has 2 sub-folders and a file. etc.
Question 2) If i have the above structure in S3, How can I retrieve the data by Java code usinf AWS SDK for Java?

A:

In aws s3, every file is an object. If you want to upload a specific file in say folder1 your object key should be folder1/filename.ext, if in subfolder of folder1 then it should be folder1/subfolder/filename.ext. So your question 1 is possible even though it is practically not a directory. 
When requesting for objects in the folder you can use delimiter and prefix to obtain objects in specific folder see http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html and http://docs.aws.amazon.com/AmazonS3/latest/dev/ListingObjectKeysUsingJava.html

