Solved

Stored procedure and function

Posted on 2004-04-28
3
144 Views
Last Modified: 2010-03-31
Whats the difference between a 1.Stored procedure and Function
2.String and StringBuffer.
   Is StringBuffer synchronised
3.why we use Triggers?Why can,t we check the condition in the client side itself instead of using triggers?
0
Comment
Question by:jimmyjacob
3 Comments
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 125 total points
ID: 10942285
>> 1.Stored procedure and Function
Compare to the similar concepts in e.g. Pascal. A procedure doesn't have to have a return value, and function must.

>> 2.String and StringBuffer.
A String is immutable, i.e. you can't change the value of the String inside. Whenever you do e.g. substring on a String, a new String object is created and returned to you.
A StringBuffer is mutable, so when building strings up from parts, you would want to use a StringBuffer.
StringBuffer is synchronized.

>> 3.why we use Triggers?Why can,t we check the condition in the client side itself instead of using triggers?
It is better (more efficient) to respond to events rather than poll for value changes. A trigger will send an event when a certain condition is met.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
thymeleaf natural templating vs JSP 2 95
Basic Java Case or If-Else statement... 3 50
jboss wildfly 10.1 10 81
eclipse console opening separately 2 17
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question