< 1 2 3 4 5 6 7 > >>   Sort: Date

System.setOut() - Setting Standard Console Output to
How could Java classes direct program messages to the system console, but error messages, say to a file? The class System has a variable out that represents the standard output, and the variable err that represents the standard error device. By default, they both connected to the system console. But...
2007-03-03, 8117👍, 0💬

Can Static Variables Be Declared in Header Files
Can static variables be declared in a header file? You can't declare a static variable without defining it as well (this is because the storage class modifiers static and extern are mutually exclusive). A static variable can be defined in a header file, but this would cause each source file that inc...
2007-02-26, 8068👍, 0💬

Troubleshooting NullPointerException
What is NullPointerException and how to handle it? When an object is not initialized, the default value is null. When the following things happen, the NullPointerException is thrown: Calling the instance method of a null object. Accessing or modifying the field of a null object. Taking the length of...
2007-03-03, 8033👍, 0💬

What is the difference between thread and process?
.NET INTERVIEW QUESTIONS - What is the difference between thread and process? A thread is a path of execution that run on CPU, a process is a collection of threads that share the same virtual memory. A process has at least one thread of execution, and a thread always run in a process context..
2010-01-05, 8029👍, 0💬

Multi-Threading
How does multi-threading take place on a computer with a single CPU? The operating system's task scheduler allocates execution time to multiple tasks. By quickly switching between executing tasks, it creates the impression that tasks execute sequentially.
2007-03-03, 8028👍, 0💬

System.loadLibrary() - Loading DLL for JNI Interface
An application needs to load a library before it starts to run, how to code? One option is to use a static block to load a library before anything is called. For example, class Test { static { System.loadLibrary("myApp.dll" );} .... } When you call new Test(), the static block will be called first b...
2007-03-03, 8025👍, 0💬

calloc() and malloc() Functions
What is the difference between "calloc(...)" and "malloc(...)"? 1. calloc(...) allocates a block of memory for an array of elements of a certain size. By default the block is initialized to 0. The total number of memory allocated will be (number_of_elements * size). malloc(...) takes in only a singl...
2007-02-26, 7981👍, 0💬

What Is Thread
What is thread? A thread is an independent path of execution in a system.
2007-03-03, 7980👍, 0💬

printf() Function
What is the output of printf("%d")? 1. When we write printf("%d",x); this means compiler will print the value of x. But as here, there is nothing after "%d", so compiler will show in output window gurbage value. 2. When we use %d the compiler internally uses it to access the argument in the stack (a...
2007-02-26, 7943👍, 0💬

How can you avoid deadlock in threading?
.NET INTERVIEW QUESTIONS - How can you avoid deadlock in threading? A good and careful planning can avoid deadlocks.There are so many ways Microsoft has provided by which you can reduce deadlocks example Monitor, Interlocked classes, Wait handles, Event raising from one thread to other thread, Threa...
2010-01-05, 7935👍, 0💬

What is Shell scripting
What is Shell scripting A shell script is a script written for the shell, or command line interpreter, of an operating system. It is often considered a simple domain-specific programming language. Typical operations performed by shell scripts include file manipulation, program execution, and printin...
2008-05-30, 7934👍, 0💬

Math
Rachel opened her math book and found that the sum of the facing pages was 245. What pages did she open to? a. 122 and 123 b. 242 and 243 c. 16 and 17 d. 24 and 25 a.
2006-09-01, 7926👍, 0💬

What is the difference between RegisterClientScriptBlock and RegisterStartupScript?
What is the difference between RegisterClientScriptBlock and RegisterStartupScript? RegisterClientScriptBlock emits the JavaScript just after the opening &lt;form> tag. RegisterStartupScript emits the JavaScript at the bottom of the ASP.NET page just before the closing &lt;/form> tag.
2008-08-05, 7887👍, 0💬

Character Array
What will be printed as the result of the operation below: main() { char s1[]="Cisco"; char s2[]="systems"; printf("%s",s1); } Answer: Cisco
2007-02-26, 7877👍, 0💬

Bitwise Operations
Which bit wise operator is suitable for checking whether a particular bit is on or off? The bitwise AND operator. Here is an example: enum { KBit1 = 0x00000001 KBit2 = 0x00000010, KBit3 = 0x00000100, ... }; if ( some_int & KBit24 ) printf("Bit number 24 is ON\n"); else printf("Bit number 24 is O...
2007-02-26, 7871👍, 0💬

What is Multi-tasking ?
.NET INTERVIEW QUESTIONS - What is Multi-tasking ? It’s a feature of modern operating systems with which we can run multiple programs at same time example Word, Excel etc.
2009-10-27, 7859👍, 0💬

What Does a HTML Document Look Like
What Does a HTML Document Look Like? A HTML document is a normal text file with predefined tags mixed with the normal contents of the document. Tags are enclosed in pairs of angle brackets: "&lt" and "&gt;". Below is how a simple HTML document will look like if you open it in a text editor: ...
2007-03-03, 7850👍, 0💬

What is Traceability Matrix?
What is Traceability Matrix? Traceability Matrix is one of the document will prepare by QA.To make sure all the requirements mentioned in the requirements document are covered in your testing, we will prepare the traceability matrix.this document contains the following columns.Req#, Brief descriptio...
2008-04-14, 7767👍, 0💬

Session Tracking without Cookies
How can I enable session tracking for JSP pages if the browser has disabled cookies? We know that session tracking uses cookies by default to associate a session identifier with a unique user. If the browser does not support cookies, or if cookies are disabled, you can still enable session tracking ...
2007-04-03, 7726👍, 0💬

Can we use events with threading ?
.NET INTERVIEW QUESTIONS - Can we use events with threading ? Yes, you can use events with thread; this is one of the techniques to synchronize one thread with other.
2009-12-15, 7712👍, 0💬

Reducing the Final Size of an Executable File
How to reduce the final size of an executable file? Size of the final execuatable can be reduced using dynamic linking for libraries.
2007-02-26, 7657👍, 0💬

Deteting Circular Linked List
Can you tell me how to check whether a linked list is circular? Create two pointers, and set both to the start of the list. Update each as follows: while (pointer1) { pointer1 = pointer1-&gt;next; pointer2 = pointer2-&gt;next; if (pointer2) pointer2=pointer2-&gt;next ;if (pointer1 == poi...
2007-02-26, 7648👍, 0💬

Show HTML Source Code without Being Interpreted by Browsers
How can I show HTML examples without them being interpreted as part of my document? Within the HTML example, first replace the "&amp;" character with "&amp;amp;" everywhere it occurs. Then replace the "&amp;lt;" character with "&lt;" and the "&amp;gt;" character with "&gt;" i...
2007-03-03, 7633👍, 0💬

Entering Comments in JSP Pages
What are the two kinds of comments in JSP and what's the difference between them? &lt;%-- JSP Comment --%&gt; &lt;!-- HTML Comment --&gt; HTML comments are visible on the client side. But JSP comments are not visible on the client side.
2007-04-03, 7620👍, 0💬

< 1 2 3 4 5 6 7 > >>   Sort: Date