in jave as far as i know that u cannot instantiate interfaces then how is it possible that DriverManager gives u a object of connection whereas connection is an interface and to be precise it is a public abstract interface.Please help me clear this doubt. thank you. [ July 27, 2004: Message edited by: Bear Bibeault ]
posted 12 years ago
Hi Mihir, Actually DriverManager.getConnection() returns an object which implements Connection Interface.