wrong date(one day less) in hibernate from db

Below is date in DB:

  • created_time
  • 2018-01-02 04:30:00.756

below is code:

List<Date> dataList=new ArrayList<Date>();
query= "SELECT createdTime FROM TableName";

for(Object data[] : dataList) {
    System.out.println("Date and time -> "+data[2]); //getting one day less than the original 

I am getting 01-01-2018 in result if the date is 02-01-2018.