Solved

Stored procedure and function

Posted on 2004-04-28
3
146 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 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
add projects t working set in maven 2 44
hashmap order 17 42
wild fly 8 startup error 2 43
netbeans can not run self signed app 8 14
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 Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

726 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