<< < 12 13 14 15 16 17 18 19 20 21 22 > >>   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, 6508👍, 0💬

What is the difference between System exceptions and Application exceptions?
.NET INTERVIEW QUESTIONS - What is the difference between System exceptions and Application exceptions? All exception derives from Exception Base class. Exceptions can be generated programmatically or can be generated by system. Application Exception serves as the base class for all applicationspeci...
2010-04-27, 6505👍, 0💬

What is the difference between Authentication and authorization
What is the difference between Authentication and authorization? This can be a tricky question. These two concepts seem altogether similar but there is wide range of difference. Authentication is verifying the identity of a user and authorization is process where we check does this identity have acc...
2007-10-24, 6501👍, 0💬

Can you prevent a class from overriding
Can you prevent a class from overriding ? If you define a class as “Sealed” in C# and “NotInheritable” in VB.NET you can not inherit the class any further.
2007-10-23, 6501👍, 0💬

Overriding Defined Macros
How do you override a defined macro? You can use the #undef preprocessor directive to undefine (override) a previously defined macro.
2007-02-26, 6497👍, 0💬

How To Select Some Rows from a Table
How To Select Some Rows from a Table? - MySQL FAQs - SQL SELECT Query Statements with GROUP BY If you don't want select all rows from a table, you can specify a WHERE clause to tell the query to return only the rows that meets the condition defined in the WHERE clause. The WHERE clause condition is ...
2007-05-11, 6487👍, 0💬

Number of Days between Two Dates
How can we know the number of days between two given dates in PHP? Simple arithmetic: &lt;?php $date1 = date('Y-m-d'); $date2 = '2006-07-01'; $days = (strtotime($date1) - strtotime($date2)) / (60 * 60 * 24); $days = (int) $days; echo "Number of days since '2006-07-01': $days"; ?&gt;
2007-02-27, 6487👍, 0💬

Is Session_End event supported in all session modes
Is Session_End event supported in all session modes ? Session_End event occurs only in “Inproc mode”.”State Server” and “SQL SERVER” do not have Session_End event.
2007-10-23, 6481👍, 0💬

Can Sub Procedure/Function Be Called Recursively
Can Sub Procedure/Function Be Called Recursively? - Oracle DBA FAQ - Creating Your Own PL/SQL Procedures and Functions PL/SQL allows sub procedures or functions to be called recursively. The tutorial example below shows you how to calculate factorial values with a recursive sub function: SQL> CREATE...
2007-04-25, 6477👍, 0💬

How To Select All Columns of All Rows from a Table
How To Select All Columns of All Rows from a Table? - MySQL FAQs - SQL SELECT Query Statements with GROUP BY The simplest query statement is the one that selects all columns of all rows from a single table: "SELECT * FROM tableName;". The (*) in the SELECT clause tells the query to return all column...
2007-05-11, 6476👍, 0💬

How do we enable SQL Cache Dependency in ASP.NET 2.0
How do we enable SQL Cache Dependency in ASP.NET 2.0? Below are the broader steps to enable a SQL Cache Dependency:- • Enable notifications for the database. • Enable notifications for individual tables. • Enable ASP.NET polling using “web.config” file • Finally use the Cache dependency object in ...
2007-10-23, 6469👍, 0💬

Can one execute dynamic SQL from Forms?
Can one execute dynamic SQL from Forms? Yes, use the FORMS_DDL built-in or call the DBMS_SQL database package from Forms. Eg: FORMS_DDL('INSERT INTO X VALUES (' || col_list || ')'); Just note that FORMS_DDL will force an implicit COMMIT and may de-synchronize the Oracle Forms COMMIT mechanism.
2011-04-12, 6468👍, 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, 6458👍, 0💬

Executing a PHP Script Using Command Line
How can I execute a PHP script using command line? Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument. For example, "php myScript.php", assuming "php" is the command to invoke the CLI program. Be aware that if your PHP script was w...
2007-02-27, 6450👍, 0💬

Conditional Statements
What will happen in these three cases? if (a=0) { //somecode } if (a==0) { //do something } if (a===0) { //do something }
2007-02-26, 6447👍, 0💬

What is CodeDom
What is CodeDom? “CodeDom” is an object model which represents actually a source code. It is designed to be language independent - once you create a “CodeDom” hierarchy for a program we can then generate the source code in any .NET compliant language. So let’s try to do something real practical an...
2007-10-22, 6433👍, 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, 6422👍, 0💬

Importance of Synchronization
What is synchronization and why is it important? With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of...
2007-03-03, 6414👍, 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, 6407👍, 0💬

Multi-dimension Arrays
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]? a[i] == *(a+i) a[i][j] == *(*(a+i)+j) a[i][j][k] == *(*(*(a+i)+j)+k) a[i][j][k][l] == *(*(*(*(a+i)+j)+k)+l)
2007-02-26, 6406👍, 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, 6403👍, 0💬

Determing the Size of Allocated Memory Blocks
How can you determine the size of an allocated portion of memory? You can't, really. free() can , but there's no way for your program to know the trick free() uses. Even if you disassemble the library and discover the trick, there’s no guarantee the trick won’t change with the next release of the co...
2007-02-26, 6398👍, 0💬

Extra White Spaces before or after Tables
Why is there extra white space before or after tables? This is often caused by invalid HTML syntax. Specifically, it is often caused by loose content within the table (i.e., content that is not inside a TD or TH element). There is no standard way to handle loose content within a table. Some browsers...
2007-03-03, 6388👍, 0💬

Calling Base Class Methods
How can method defined in multiple base classes with same name be invoked from derived class simultaneously? class x { public: m1(); }; class y { public: m1(); }; class z: public x, public y { public: m1() { x::m1(); y::m1(); } };
2007-02-26, 6363👍, 0💬

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