what is the use of Object Factories?



what is the use of Object Factories?..

Answer / guest

Factory methods that will be used to create objects just
like in a static way.

eg:Class.forName("driver class");
forName is a static methiod.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

For an example, if we have some variable in run method, and we created one or more threads. Does all threads will share the same variable or a copy of variable is created for each thread??

1 Answers  


Wt is the main difference between Java and Java J2EE and Advanced java?

5 Answers   Wipro,


What invokes a thread?s run() method?

2 Answers  


What is colon_pkg_prefixes and what is its use?

0 Answers  


Explain what is orm?

0 Answers  






What is runnable?

2 Answers  


cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

0 Answers  


1) what is synchronization? 2)write a program to show synchronization ? 3) what is orm? 4) what is getTemplete method and hw u use it? 5)write a singleton program ? 6) what is IOC concept & explain it? 7) methods of spring? 8)explain spring framework? 9)what are the oops concept? 10)what r the diff types of exception? 11)what is AOP(assepct oriented programing)? 12)jsp life cycle? 13)servlet life cycle? 14)how to u catch ur exception when executing a query in hibernate? 15)write javascript function? 16)write a querry to join two tables? 17)wap to show inheritance and use of interface? 18)explain the project? 19)in spring bean class uses singleton or prototype? 20)Explain prototype?

1 Answers   Cap Gemini,


How has the sandbox changed with Java 2?

2 Answers  


how to get value in combo for updation?

1 Answers   CMC,


What is the difference between the ‘font’ and ‘fontmetrics’ class?

0 Answers  


What is threadfactory?

0 Answers  


Categories