[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Stored procedure and function

Posted on 2004-04-28
3
Medium Priority
?
149 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 500 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

650 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