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

Creating a New Thread
How to create a thread in a program? You have two ways to do so. First, making your class "extends" Thread class. Second, making your class "implements" Runnable interface. Put jobs in a run() method and call start() method to start the thread.
2016-06-25, 434759👍, 8💬

💬 2016-06-25 Ron: You can also create an anonymous class and run it: Thread t = new Thread() { public void run() { // do whatever you want } }; t....

💬 2013-10-02 drinkin: This unmistakably created an audience for books fact that consciously offered the grand design models

💬 2013-07-23 XRumerTest: Hello. And Bye.

(More comments ...)

Give me the example of SRS and FRS
Give me the example of SRS and FRS SRS :- Software Requirement Specification BRS :- Basic Requirement Specification FRS :- Functional requirment specification FRS mainly says the particular functionality. FRS mainly used for change request, enchancements, additional functionalites. BRD contain Basic...
2009-03-17, 17879👍, 0💬

printf() and sprint() Functions
What is the difference between "printf(...)" and "sprintf(...)"? sprintf(...) writes data to the charecter array whereas printf(...) writes data to the standard output device.
2007-02-26, 17538👍, 0💬

How do you locate the first X in a string txt?
How do you locate the first X in a string txt? A) txt.find('X'); B) txt.locate('X'); C) txt.indexOf('X'); D) txt.countTo('X');
2022-10-19, 15325👍, 5💬

💬 2022-10-01 Ken: The answer is C.

💬 2021-05-22 Shubhamay Hazra: The answer is txt.indexOf('X') because when you want to find something in a string in a particular position, you have to use ind...

💬 2021-03-05 karthik: The content is purely software oriented and the quality of the content is good and it useful to software and some related to sof...

What is Suspend and Resume in Threading ?
.NET INTERVIEW QUESTIONS - What is Suspend and Resume in Threading ? It is Similar to Sleep and Interrupt. Suspend allows you to block a thread until another thread calls Thread.Resume. The difference between Sleep and Suspend is that the latter does not immediately place a thread in the wait state....
2009-12-01, 10645👍, 0💬

What are Daemon threads and how can a thread be created as Daemon?
.NET INTERVIEW QUESTIONS - What are Daemon threads and how can a thread be created as Daemon? Daemon thread's run in background and stop automatically when nothing is running program. Example of a Daemon thread is "Garbage collector". Garbage collector runs until some .NET code is running or else it...
2009-12-09, 10487👍, 0💬

String Pointers
What will be printed as the result of the operation below: main() { char *ptr = " Cisco Systems"; *ptr++; printf("%s\n",ptr); ptr++; printf("%s\n",ptr); } 1) ptr++ increments the ptr address to point to the next address. In the prev example, ptr was pointing to the space in the string before C, now ...
2007-02-26, 10414👍, 0💬

Regarding C Coding
Regarding C Coding Given: Line in file Contents 30 int * someIDs, theFirst, *r; 110 someIDs =GetSomeIDs(); /* defined below */ 111 theFirst = someIDs [0]; 112 r= ReorderIDs(someIDs); 113-150 /* we want to use ‘theFirst’ and ‘r’ here*/ 499 /*-------- GetSomeIDs-----*/ 500 int * GetSomeIDs() 501 { 50...
2010-05-12, 10399👍, 0💬

enum vs. define Statements
What is the benefit of using an enum rather than a #define constant? The use of an enumeration constant (enum) has many advantages over using the traditional symbolic constant style of #define. These advantages include a lower maintenance requirement, improved program readability, and better debuggi...
2007-02-26, 10304👍, 0💬

How does one iterate through items and records in a specified block?
How does one iterate through items and records in a specified block? One can use NEXT_FIELD to iterate (loop) through items in a specific block and NEXT_RECORD to iterate through records in a block. Code example: OriPos := TO_NUMBER(:System.Trigger_Reco rd);First_Record; LOOP -- do processing IF (:S...
2011-03-22, 9739👍, 0💬

Bitwise Operations
Which bit wise operator is suitable for turning off a particular bit in a number? The bitwise AND operator. Here is an example: enum { KBit1 = 0x00000001 KBit2 = 0x00000010, KBit3 = 0x00000100, ... }; some_int = some_int & ~KBit24;
2007-02-26, 9491👍, 0💬

File Upload Handling - Getting Uploaded File Information
How To Get the Uploaded File Information in the Receiving PHP Script? Once the Web server received the uploaded file, it will call the PHP script specified in the form action attribute to process them. This receiving PHP script can get the uploaded file information through the predefined array calle...
2016-06-30, 9390👍, 2💬

How to prevent my .NET DLL to be decompiled?
.NET INTERVIEW QUESTIONS - 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...
2010-05-04, 9266👍, 0💬

What Articles Have You Read about JUnit
What Articles Have You Read about JUnit? There are a number of JUnit articles that you should read: "JUnit Primer" by Clarkware Consulting, Inc.. This article demonstrates a quick and easy way to write and run JUnit test cases and test suites. "JUnit FAQ" by Mike Clark. A collection of requently ask...
2008-01-09, 9126👍, 0💬

"register" Modifier
When should the register modifier be used? Does it really help? The register modifier hints to the compiler that the variable will be heavily used and should be kept in the CPU's registers, if possible, so that it can be accessed faster. There are several restrictions on the use of the register modi...
2007-02-26, 9124👍, 0💬

Octal and Decimal Numbers
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what's the problem? If you assign a variable with a value of 0123, PHP will interpret as an octal number resulting to decimal value of 83. All numbers that preceded with a 0 (zero) will be interpreted...
2007-02-27, 8747👍, 0💬

How To Wirte a Simple JUnit Test Class
How To Wirte a Simple JUnit Test Class? This is a common test in a job interview. You should be able to write this simple test class with one test method: import org.junit.*; // by FYICenter.com public class HelloTest { @Test public void testHello() { String message = "Hello World!"; Assert.assertEq...
2008-01-11, 8717👍, 0💬

Including Comments in HTML
How can I include comments in HTML? An HTML comment begins with "<!--", ends with "-->", and does not contain "--" or ">" anywhere in the comment. Do not put comments inside tags (i.e., between "<" and ">") in HTML markup. The following are examples of HTML comment...
2007-03-03, 8713👍, 0💬

Can JavaScript steal text from your clipboard?
Can JavaScript steal text from your clipboard? It is true, text you last copied for pasting (copy & paste) can be stolen when you visit web sites using a combination of JavaScript and ASP (or PHP, or CGI) to write your possible sensitive data to a database on another server.
2020-11-30, 8588👍, 1💬

💬 2020-11-30 alert(document.cookie)</: <h1>hi</h1> <script>alert(document.cookie )</script>

How will you freeze the requirement in this case?
How will you freeze the requirement in this case? What will be your requirement satisfaction criteria? To get the answer, ask this question to stakeholders: How much response time is ok for you? If they say, we will accept the response if it’s within 2 seconds, then this is your requirement measure....
2009-03-23, 8471👍, 0💬

Who Developed HTML
Who Developed HTML? HTML was originally developed by Tim Berners-Lee while at CERN, and popularized by the Mosaic browser developed at NCSA. During the course of the 1990s it has blossomed with the explosive growth of the Web. Tim now holds the 3Com Founders chair at the Laboratory for Computer Scie...
2007-03-03, 8305👍, 0💬

Convert an integer or a float to a string
Does there exist any other function which can be used to convert an integer or a float to a string? Some implementations provide a nonstandard function called itoa(), which converts an integer to string. char *itoa(int value, char *string, int radix); DESCRIPTION - The itoa() function constructs a s...
2007-02-26, 8277👍, 0💬

Tag <?= ... ?> in PHP
What does a special set of tags <?= and ?> do in a PHP script page? <?= expression ?> allows you to output the value of the specified expression into the HTML document directly.
2006-09-01, 8259👍, 0💬

What is COM ?
.NET INTERVIEW QUESTIONS - What is COM ? Microsoft’s COM is a technology for component software development. It is a binary standard which is language independent. DCOM is a distributed extension of COM.
2010-01-12, 8148👍, 0💬

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