<< < 8 9 10 11 12 13 14 15 16 17 18 > >>   Sort: Date

Why is it preferred to not use finalize for clean up
Why is it preferred to not use finalize for clean up? Problem with finalize is that garbage collection has to make two rounds in order to remove objects which have finalize methods. Below figure will make things clear regarding the two rounds of garbage collection rounds performed for the objects ha...
2007-10-23, 6653👍, 0💬

What is a measure in OLAP
What is a measure in OLAP ? Measures are the key performance indicator that you want to evaluate. To determine which of the numbers in the data might be measures. A rule of thumb is: If a number makes sense when it is aggregated, then it is a measure.
2007-10-25, 6648👍, 0💬

Including Source Files
What is the result of using Option Explicit? When writing your C program, you can include files in two ways. The first way is to surround the file you want to include with the angled brackets &lt; and &gt;. This method of inclusion tells the preprocessor to look for the file in the predefine...
2007-02-26, 6648👍, 0💬

How did you implement UML in your project PART I
What is the sequence of UML diagrams in project? First let me say some fact about this question, you can not implement all the nine diagrams given by UML in one project; you can but can be very rare scenario. The way UML is implemented in project varies from project to project and company to company...
2007-10-26, 6642👍, 0💬

Using scriptlet to Initialize JavaBean
How do I use a scriptlet to initialize a newly instantiated bean? A jsp:useBean action may optionally have a body. If the body is specified, its contents will be automatically invoked when the specified bean is instantiated. Typically, the body will contain scriptlets or jsp:setProperty tags to init...
2007-04-03, 6640👍, 0💬

Modulation Operations
Write an equivalent expression for x%8? x&amp;7
2007-02-26, 6633👍, 0💬

What is a delegate
What is a delegate ? Delegate is a class that can hold a reference to a method or a function. Delegate class has a signature and it can only reference those methods whose signature is compliant with the class. Delegates are type-safe functions pointers or callbacks. Below is a sample code which show...
2007-10-23, 6629👍, 0💬

How To Use Subqueries in the FROM clause
How To Use Subqueries in the FROM clause? - MySQL FAQs - SQL SELECT Statements with JOIN and Subqueries If you have a query returning many rows of data, and you want to perform another query on those rows, you can put the first query as a subquery in the FROM clause of the second query. A subquery u...
2007-05-11, 6626👍, 0💬

How To Enter Characters as HEX Numbers
How To Enter Characters as HEX Numbers? - MySQL FAQs - Introduction to SQL Basics If you want to enter characters as HEX numbers, you can quote HEX numbers with single quotes and a prefix of (X), or just prefix HEX numbers with (0x). A HEX number string will be automatically converted into a charact...
2007-05-11, 6624👍, 0💬

what are the advantages of hosting WCF Services in IIS as compared to self hosting
what are the advantages of hosting WCF Services in IIS as compared to self hosting? There are two main advantages of using IIS over self hosting: Automatic activation IIS provides automatic activation that means the service is not necessary to be running in advance. When any message is received by t...
2007-11-04, 6619👍, 0💬

What Is invokeLater() Method
When should the method invokeLater() be used? This method is used to ensure that Swing components are updated through the event-dispatching thread.
2007-03-03, 6616👍, 0💬

Wha is the output from System.out.println("Hello"+null);?
Wha is the output from System.out.println("Hello"+nul l);?Hellonull
2012-09-14, 6612👍, 0💬

How did you implement UML in your project PART II
How did you implement UML in your project ? PART II Implementation phase / Coding phase (Class diagrams for reverse engineering, Other diagrams for validity check) In this phase mostly class diagrams are re-engineered with the source code. But other diagrams are also present for validity check examp...
2007-10-26, 6609👍, 0💬

How To Delete All Rows a Table
How To Delete All Rows a Table? - MySQL FAQs - Understanding SQL INSERT, UPDATE and DELETE Statements If you want to delete all rows from a table, you have two options: Use the DELETE statement with no WHERE clause. Use the TRUNCATE TABLE statement. The TRUNCATE statement is more efficient the DELET...
2007-05-11, 6607👍, 0💬

How To Run a JUnit Test Class
How To Run a JUnit Test Class? A JUnit test class usually contains a number of test methods. You can run all test methods in a JUnit test class with the JUnitCore runner class. For example, to run the test class HelloTest.java described previously, you should do this: java -cp .;junit-4.4.jar org.ju...
2008-01-15, 6594👍, 0💬

How To Display a Past Time in Days, Hours and Minutes
How To Display a Past Time in Days, Hours and Minutes? - MySQL FAQs - Managing Tables and Running Queries with PHP Scripts You have seen a lots of Websites are displaying past times in days, hours and minutes. If you want to do this yourself, you can use the TIMEDIFF() SQL function. Note that the TI...
2007-05-11, 6591👍, 0💬

What’ is the sequence in which ASP.NET events are processed
What’ is the sequence in which ASP.NET events are processed ? Following is the sequence in which the events occur :- ? Page_Init. ? Page_Load. ? Control events ? Page_Unload event. Page_init event only occurs when first time the page is started, but Page_Load occurs in subsequent request of the page...
2007-10-24, 6588👍, 0💬

How To Create an Add-to-Google-Reader Button on Your Website
How To Create an Add-to-Google-Reader Button on Your Website? - RSS FAQs - Adding Your Feeds to RSS News Readers and Aggregators If you like the "Add to Google Reader" button showing on this site, you can create one for your own Web site by following the tutorial exercise below: 1. Create an RSS Ato...
2007-05-12, 6582👍, 0💬

Where are cookies actually stored on the hard disk?
Where are cookies actually stored on the hard disk? This depends on the user's browser and OS. In the case of Netscape with Windows, all the cookies are stored in a single file called cookies.txt c:\Program Files\Netscape\Users\username\ cookies.txtIn the case of IE, each cookie is stored in a separ...
2008-05-20, 6579👍, 0💬

Constants
WHat will be the result of the following code? #define TRUE 0 // some code while (TRUE) { // some code } Answer: This will not go into the loop as TRUE is defined as 0.
2007-02-26, 6579👍, 0💬

Using Macros for Contants
What is the benefit of using #define to declare a constant? Using the #define method of declaring a constant enables you to declare a constant in one place and use it throughout your program. This helps make your programs more maintainable, because you need to maintain only the #define statement and...
2007-02-26, 6564👍, 0💬

Can you explain in brief how the ASP.NET authentication process works
Can you explain in brief how the ASP.NET authentication process works? ASP.NET does not run by itself, it runs inside the process of IIS. So there are two authentication layers which exist in ASP.NET system. First authentication happens at the IIS level and then at the ASP.NET level depending on the...
2007-10-24, 6559👍, 0💬

How To Give a User Read-Only Access to a Database
How To Give a User Read-Only Access to a Database? - MySQL FAQs - Managing User Accounts and Access Privileges If you want give a user read-only access to a database, you can grant to him/her only the "SELECT" privilege, so that he/she can not run any DDL statements, and any INSERT, UPDATE, or DELET...
2007-05-08, 6555👍, 0💬

How To Set session.gc_maxlifetime Properly
How To Set session.gc_maxlifetime Properly? - PHP Script Tips - Understanding and Using Sessions As you know that session.gc_maxlifetime is the session value timeout period. You should set this value based on the usage pattern of your visitors. Here are some suggestions: # Set it to 20 minutes for a...
2007-04-18, 6550👍, 0💬

<< < 8 9 10 11 12 13 14 15 16 17 18 > >>   Sort: Date