We know that ServletRequest and ServletResponse are interfaces but the web container takes responsibility of creating objects for these interfaces and this is done by the code which implements these...
Type: Posts; User: sudha_kumari7; Keyword(s):
We know that ServletRequest and ServletResponse are interfaces but the web container takes responsibility of creating objects for these interfaces and this is done by the code which implements these...
Hi lavanya we can create object without using new opearator.
1) Using factory methods
Ex:- NumberFormat obj=NumberFormat.getInstance();
2)Using newInstance() method
Ex:-
Class...