what are design patterns?
Answers were Sorted based on User's Feedback
Answer / srinivas.parigi
design patterns are a good solutions for reoccuring
problems in the development of appliation, and these are
designed by senior software developers by using very good
frameworks.
using design pattens a junior can spend less time to solve
the problems insted of spending lot of time for reoccuring
problems in the development of applications.
Ex :
single thread model,DataAccessObject,DataAccesLogic,
mvc-II(most popular today using in all development of
applications)
ejb design patterns(EDP) : SLDP(service locator design
pattern),Business deligate desing patt,Home cash
DP,DataTransfer Object (DTO)SessionFecade(SF),etc
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / naresh
In software engineering, a design pattern is a general
reusable solution to a commonly occurring problem in
software design. A design pattern is not a finished design
that can be transformed directly into code. It is a
description or template for how to solve a problem that can
be used in many different situations. Object-oriented
design patterns typically show relationships and
interactions between classes or objects, without specifying
the final application classes or objects that are involved.
Design patterns reside in the domain of modules and
interconnections. At a higher level there are Architectural
patterns that are larger in scope, usually describing an
overall pattern followed by an entire system.[1]
Abstract Factory
Builder
Factory Method
Prototype
Singleton
Adapter
Bridge
Composite
Facade
Flyweight
Proxy
Chain of responsibility
Command
Interpreter
Iterator
Mediator
Memento
Observer
State
Strategy
Template method
Visitor
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rajashree
Software professionals may be familiar with the
term "Design Patterns," but many have no idea of where they
come from and what they truly are. Consequently, some do
not see the value and benefits design patterns bring to the
software development process, especially in the areas of
maintenance and code reuse. This article will bridge this
gap by defining design patterns from a historical
perspective. It will also summarize the salient features of
a typical design pattern and arrive at a working definition
so that you will know what they are and what to expect when
you incorporate them into your designs. Finally, it will
explicitly summarize the benefits design patterns bring to
software development and why you should incorporate them
into your work. Subsequent articles will present more
detailed descriptions of some of the more common design
patterns, and how they can be applied to software
development on the .NET platform.
| Is This Answer Correct ? | 0 Yes | 3 No |
Why we use while rs next ())?
Explain the locking system in jdbc?
Why “no suitable driver” error occurs?
Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection?
What are the differences between setmaxrows(int) and setfetchsize(int)?
List some new features available in jdbc 4.0?
Hi my doubt is that preparedStatement is a interface means which has no implemenation.plz go thru the code below String sql = "SELECT * FROM movies WHERE year_made = ?"; prest = con.prepareStatement(sql); prest.setInt(1,2002); ResultSet rs1 = prest.executeQuery(); Now setInt and executeQuery how it works since it is interface it does not have implementation how it works, how executeQuery returns result from database as executequery method has no implementation even in Statement interface.
4 Answers Cybermate, Hexaware,
What happens if connection is not closed in jdbc?
java.lang.ClassNotFoundException:oracle.jdbc.driver.OracleDr iver? I get this error at run time.I used oracle10G. I set CLASS PATH:C:\oraclexe\app\oracle\product\10.2.0 \server\jdbc\lib\ojdbc14.jar; I write JDBC PROGRAM like import java.sql.*; class Example { public static void main(String args[]) { try { Class.forName ("oracle.jdbc.driver.OracleDriver"); System.out.println("Driver Loaded"); Connection con=DriverManager.getConnection ("jdbc:oracle:thin:@localhost:1521:xe","system","salmas"); System.out.println("Driver Connected"); Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select * from emp"); while(rs.next()) { System.out.println(rs.getInt(1)); System.out.println(rs.getString(2)); System.out.println(rs.getString(3)); } st.close(); con.close(); } catch(Exception e) { System.out.println(e); } finally { System.out.println("it's finally block executed"); } } }
What is ojdbc14 jar?
What are drivers available?
What is the difference between setmaxrows(int) and setfetchsize(int)?