The extent of the warranty will be offered with the specific item. Warranties can be different for camera bodies, lenses, accessories, etc. If the warranty is not clear, ask the retailer for details.
Well there is a one year product warranty for those products as well as there is for the new ones. You have to contact customer service and tell them what the problem is.