<< < … 13 14 15 16 17 18 19 20 21 22 23 … > >>   Sort: Date

Vector and ArrayList Classes
What is the main difference between a Vector and an ArrayList? Java Vector class is internally synchronized and ArrayList is not.
2007-03-03, 7259👍, 0💬

Determining If Symbols Are Defined or Not
How can you check to see whether a symbol is defined? You can use the #ifdef and #ifndef preprocessor directives to check whether a symbol has been defined (#ifdef) or whether it has not been defined (#ifndef). Can you define which header file to include at compile time? Yes. This can be done by usi...
2007-02-26, 7257👍, 0💬

Invoking run() Method of a Thread
What invokes a thread's run() method? After a thread is started, via its start() method of the Thread class, the JVM invokes the thread's run() method when the thread is initially executed.
2007-03-03, 7246👍, 0💬

Do You Know the Book "JUnit in Action"
Do You Know the Book "JUnit in Action"? You should know this book. It received some good reviews. Title: JUnit in Action Publisher: Manning Publications (October 1, 2003) Author: Vincent Massol, Ted Husted Abstract: A guide to unit testing Java applications (including J2EE applications) using the JU...
2008-01-07, 7242👍, 0💬

Is XHTML Element Name Case Sensitive
Is XHTML Element Name Case Sensitive? - XHTML Tutorials - Introduction To Tag and Attribute Syntax Yes, XHTML element names are case sensitive. All element names must be written in lower case letters. Here are some valid and invalid XHTML element names: &lt;html&gt; - Valid name. &lt;HTM...
2007-05-12, 7221👍, 0💬

Variable Types
What are the types of variables x, y, y and u defined in the following code? #define Atype int* typedef int *p; p x, z; Atype y, u; Answer: x and z are pointers to int. y is a pointer to int but u is just an integer variable
2007-02-26, 7220👍, 0💬

Virtual Functions in Java
Can you have virtual functions in Java? Yes, all functions in Java are virtual by default. This is actually a pseudo trick question because the word "virtual" is not part of the naming convention in Java (as it is in C++, C-sharp and VB.NET), so this would be a foreign concept for someone who has on...
2007-03-03, 7218👍, 0💬

How To Add Margins to an Image
How To Add Margins to an Image? - PSP Tutorials - Fading Images to Background Colors with PSP In order to adding effects to an image, sometimes you need to add margins to the image first. You can follow the steps below to add black margins to an image: Go to http://lettres.ac-rouen.fr/ and download ...
2007-05-12, 7216👍, 0💬

Can you explain different software development life cycles - part II
Can you explain different software development life cycles -part II? Water Fall Model This is the oldest model. It has sequence of stages; output of one stage becomes input of other. Following are stages in Waterfall model: System Requirement: - This is initial stage of the project where end user re...
2007-10-30, 7213👍, 0💬

Can you explain in GSC and VAF in function points
Can you explain in GSC and VAF in function points? In GSC (General System Characteristic) there are 14 factors which are rated on 1 to 5 depending on the complexity of the factor. Below are the 14 factors: Data communications: - How many communication facilities are there to aid in the transfer or e...
2007-10-30, 7206👍, 0💬

Server Push and Refresh
How can a servlet refresh automatically if some new data has entered the database? You can use a client-side Refresh or Server Push.
2007-04-03, 7164👍, 0💬

Thread Safe JSP Pages
How can I implement a thread-safe JSP page? You can make your JSPs thread-safe by having them implement the SingleThreadModel interface. This is done by adding the directive &lt;%@ page isThreadSafe="false" %&gt; within your JSP page.
2007-04-03, 7084👍, 0💬

What is everyone using to write HTML documents?
How comfortable are you with writing HTML documents entirely by hand? Everyone has a different preference for which tool works best for them. Keep in mind that typically the less HTML the tool requires you to know, the worse the output of the HTML. In other words, you can always do it better by hand...
2007-03-03, 7046👍, 0💬

Opening Files to Share with Other Programs
How can I open a file so that other programs can update it at the same time? Your C compiler library contains a low-level file function called sopen() that can be used to open a file in shared mode. Beginning with DOS 3.0, files could be opened in shared mode by loading a special program named SHARE...
2007-02-26, 7016👍, 0💬

How can you raise custom errors from stored procedure
How can you raise custom errors from stored procedure ? The RAISERROR statement is used to produce an ad hoc error message or to retrieve a custom message that is stored in the sysmessages table. You can use this statement with the error handling code presented in the previous section to implement c...
2007-10-25, 7006👍, 0💬

How To Create a Top Left Corner Image with a Fading Color
How To Create a Top Left Corner Image with a Fading Color? - PSP Tutorials - Fading Images to Background Colors with PSP If you want to put background image to the top left corner of your Web page, you need to fad the right lower part of the image to the background color. The tutorial below tells yo...
2007-05-12, 6946👍, 0💬

What is the use of “OverRides” and “Overridable” keywords
What is the use of “OverRides” and “Overridable” keywords ? Overridable is used in parent class to indicate that a method can be overridden. Overrides is used in the child class to indicate that you are overriding a method
2007-10-23, 6943👍, 0💬

How can we suppress a finalize method
How can we suppress a finalize method? GC.SuppressFinalize ()
2007-10-23, 6906👍, 0💬

How To Select All Columns of All Rows from a Table
How To Select All Columns of All Rows from a Table? - Oracle DBA FAQ - Understanding SQL SELECT Query Statements The simplest query statement is the one that selects all columns of all rows from a table: "SELECT * FROM table_name;". The (*) in the SELECT clause tells the query to return all columns....
2007-04-21, 6906👍, 0💬

How To View Existing Locks on the Database
How To View Existing Locks on the Database? - Oracle DBA FAQ - Understanding SQL Transaction Management As can see from the pervious tutorial exercise, performance of the second session is greatly affected by the data lock created on the database. To maintain a good performance level for all session...
2007-04-17, 6888👍, 0💬

What Are the Differences between CHAR and NCHAR
What Are the Differences between CHAR and NCHAR? - Oracle DBA FAQ - Understanding SQL Basics Both CHAR and NCHAR are fixed length character data types. But they have the following differences: CHAR's size is specified in bytes by default. NCHAR's size is specified in characters by default. A charact...
2016-06-25, 6879👍, 0💬

How to prevent my .NET DLL to be decompiled
How to prevent my .NET DLL to be decompiled? By design .NET embeds rich Meta data inside the executable code using MSIL. Any one can easily decompile your DLL back using tools like ILDASM (owned by Microsoft) or Reflector for .NET which is a third party. Secondly there are many third party tools whi...
2007-10-22, 6873👍, 0💬

Shift Operations
What will the following piece of code do? int f(unsigned int x) { int i; for (i=0; x!=0; x&gt;&gt;1) { if (x &amp; 0x1) i++; } return i; } Answer: returns the number of ones in the input parameter X.
2007-02-26, 6868👍, 0💬

Swapping Variables
Can you write a program to interchange 2 variables without using the third one? a = 7; b = 2; a = a + b; b = a - b; a = a - b;
2007-02-26, 6862👍, 0💬

<< < … 13 14 15 16 17 18 19 20 21 22 23 … > >>   Sort: Date