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

What Is the "@SuiteClasses" Annotation?
What Is the "@SuiteClasses" Annotation? "@SuiteClasses" is a class annotation defined in JUnit 4.4 in org.junit.runners.Suite.SuiteC lasses.It allows you to define a suite class as described in the previous question. By the way, the API document of JUnit 4.4 has a major typo for the org.junit.runner...
2008-01-31, 7322👍, 0💬

What is the difference between Class and structure’s
What is the difference between Class and structure’s ? Following are the key differences between them :- ? Structure are value types and classes are reference types. So structures use stack and classes use heap. ? Structures members can not be declared as protected, but class members can be. You can...
2007-10-23, 7320👍, 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, 7317👍, 0💬

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

How do I install JUnit? First I will download the lastest version of JUnit.
How do I install JUnit? First I will download the lastest version of JUnit. Then I will extract all files from the downloaded file. The most important file should be the JUnit JAR file: junit-4.4.jar, which contains all JUnit class packages. To verify junit-4.4.jar, I will run the org.junit.runner.J...
2008-01-09, 7311👍, 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, 7310👍, 0💬

States of a Thread
What are the high-level thread states? The high-level thread states are ready, running, waiting, and dead.
2007-03-03, 7302👍, 0💬

How to make elements invisible?
How to make elements invisible? Change the "visibility" attribute of the style object associated with your element. Remember that a hidden element still takes up space, use "display" to make the space disappear as well. if ( x == y) { myElement.style.visibility = 'visible'; } else { myElement.style....
2009-02-03, 7294👍, 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, 7291👍, 0💬

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, 7285👍, 0💬

What Happens to Indexes If You Drop a Table
What Happens to Indexes If You Drop a Table? - Oracle DBA FAQ - Managing Oracle Table Indexes If you drop a table, what happens to its indexes? The answer is that if a table is dropped, all its indexes will be dropped too. Try the following script to see yourself: CREATE TABLE student (id NUMBER(5) ...
2007-05-02, 7282👍, 0💬

How To Dump the Contents of a Directory into an Array
How To Dump the Contents of a Directory into an Array? - PHP Script Tips - Working with Directoris and Files If you want to get the contents of a directory into an array, you can use the scandir() function. It gets a list of all the files and sub directories of the specified directory and returns th...
2007-04-23, 7276👍, 0💬

Searching Date in Linked Lists
How can I search for data in a linked list? Unfortunately, the only way to search a linked list is with a linear search, because the only way a linked list's members can be accessed is sequentially. Sometimes it is quicker to take the data from a linked list and store it in a different data structur...
2007-02-26, 7269👍, 0💬

How to set a HTML document's background color?
How to set a HTML document's background color? document.bgcolor property can be set to any appropriate color.
2008-05-27, 7264👍, 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, 7260👍, 0💬

How To Assign Debug Privileges to a User
How To Assign Debug Privileges to a User? - Oracle DBA FAQ - Introduction to Oracle SQL Developer In order to run SQL Developer in debug mode, the session must be connected with a user who has debug privileges. The following script shows you how to assign debug privileges: Connect to the default dat...
2007-04-28, 7257👍, 0💬

Can we get a strongly typed resource class rather than using resource manager
Can we get a strongly typed resource class rather than using resource manager? In the previous question we had seen how resourcemanager class can be used to read the string from the resource file. But there has been considerable improvement in VS.Net 2005 for resource support. You no more need to lo...
2007-11-01, 7253👍, 0💬

What Is Hashing
What is hashing? To hash means to grind up, and that's essentially what hashing is all about. The heart of a hashing algorithm is a hash function that takes your nice, neat data and grinds it into some random-looking integer. The idea behind hashing is that some data either has no inherent ordering ...
2007-02-26, 7252👍, 0💬

Using Pointers
What print out will the folloging code produce? main() { char *p1=“name”; char *p2; p2=(char*)malloc(20); memset (p2, 0, 20); while(*p2++ = *p1++); printf(“%s\n”,p2);> } The pointer p2 value is also increasing with p1 . *p2++ = *p1++ means copy value of *p1 to *p2 , then increment both addresses (p...
2007-02-26, 7250👍, 0💬

What is page thrashing
What is page thrashing? Some operating systems (such as UNIX or Windows in enhanced mode) use virtual memory. Virtual memory is a technique for making a machine behave as if it had more memory than it really has, by using disk space to simulate RAM (random-access memory). In the 80386 and higher Int...
2007-02-26, 7249👍, 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, 7246👍, 0💬

How To Remove the Top White Space of Your Web Page
How To Remove the Top White Space of Your Web Page? - CSS Tutorials - Introduction To CSS Basics The top white space of your Web page is provided by the browser's default CSS definition of the margin-top property on the BODY tag. You can remove this white space by adding your own margin-top definiti...
2007-05-11, 7246👍, 0💬

How to create arrays in JavaScript?
How to create arrays in JavaScript? We can declare an array like this var scripts = new Array(); We can add elements to this array like this scripts[0] = "PHP"; scripts[1] = "ASP"; scripts[2] = "JavaScript"; scripts[3] = "HTML"; Now our array scrips has 4 elements inside it and we can print or acces...
2008-05-06, 7240👍, 0💬

What Happens If the UPDATE Subquery Returns Multiple Rows
What Happens If the UPDATE Subquery Returns Multiple Rows? - Oracle DBA FAQ - Understanding SQL DML Statements If a subquery is used in a UPDATE statement, it must return exactly one row for each row in the update table that matches the WHERE clause. If it returns multiple rows, Oracle server will g...
2007-04-21, 7236👍, 0💬

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