<< < 7 8 9 10 11 12 13 14 15 16 17 > >>   Sort: Date

What Happens If a JUnit Test Method Is Declared to Return "String"
What Happens If a JUnit Test Method Is Declared to Return "String"? If a JUnit test method is declared to return "String", the compilation will pass ok. But the execution will fail. This is decause JUnit requires that all test methods must be declared to return "void". For example: type HelloTestNon...
2008-01-24, 5814👍, 0💬

Serializable Interface
How many methods in the Serializable interface? There is no method in the Serializable interface. The Serializable interface acts as a marker, telling the object serialization tools that your class is serializable.
2007-03-03, 5811👍, 0💬

Overriding JSP Server Generated Servlet Subclass
How do I have the JSP-generated servlet subclass be my own custom servlet class, instead of the default? One should be very careful when having JSP pages extend custom servlet classes as opposed to the default one generated by the JSP engine. In doing so, you may lose out on any advanced optimizatio...
2007-04-03, 5804👍, 0💬

Observer Interface and Observable Class
How are Observer and Observable used? Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated, it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by obj...
2007-03-03, 5788👍, 0💬

Stoping JSP Execution in the Middle of a JSP Page
Can I stop JSP execution while in the midst of processing a request? Yes. Preemptive termination of request processing on an error condition is a good way to maximize the throughput of a high-volume JSP engine. The trick (asuming Java is your scripting language) is to use the return statement when y...
2007-04-03, 5786👍, 0💬

How can JavaScript be used to improve the user interface?
How can JavaScript be used to improve the "look and feel" of a Web site? By the same token, how can JavaScript be used to improve the user interface? On their own, Web pages tend to be lifeless and flat unless you add animated images or more bandwidth-intensive content such as Java applets or other ...
2008-04-22, 5754👍, 0💬

What is a thread? How to use and create a thread in .NET?
What is a thread? How to use and create a thread in .NET? Can we use events with threading? Threads - When we want to run one or more instances of a method, we make use of threading. Suppose we have a method like this... Private Sub OnGoingProcess() Dim i As Integer = 1 Do While True ListBox1.Items....
2009-03-06, 5751👍, 0💬

Iterator Interface
Is Iterator a Class or Interface? What is its use? Iterator is an interface which is used to step through the elements of a Collection.
2007-03-03, 5749👍, 0💬

What is Action Class
What is Action Class? The Action Class is part of the Model and is a wrapper around the business logic. The purpose of Action Class is to translate the HttpServletRequest to the business logic. To use the Action, we need to Subclass and overwrite the execute() method. In the Action Class all the dat...
2007-12-17, 5742👍, 0💬

Defining Abstract Classes
How to define an Abstract class? Defining an abstract class is done using the keyword "abstract". Here is an example of abstract class: abstract class MyAbstract { protected String myString; public String getMyString() { return myString; } public abstract string getMyStringInYourWay(); }
2007-03-03, 5736👍, 0💬

Can one Maximize/ Minimize a Window in Forms?
Can one Maximize/ Minimize a Window in Forms? On MS-Windows, Forms run inside a Windows Multiple-Document Interface (MDI) window. You can use SET_WINDOW_PROPERTY on the window called FORMS_MDI_WINDOW to resize this MDI (or any other named) window. Examples: set_window_property(FORMS_MDI_ WINDOW,WIND...
2011-03-29, 5729👍, 0💬

Perl uses single or double quotes to surround a zero
Perl uses single or double quotes to surround a zero or more characters. Are the single(' ') or double quotes (" ") identical? They are not identical. There are several differences between using single quotes and double quotes for strings: The double-quoted string will perform variable interpolation...
2007-11-26, 5729👍, 0💬

How To Find Out What Privileges a User Currently Has
How To Find Out What Privileges a User Currently Has? - Oracle DBA FAQ - Managing Oracle User Accounts, Schema and Privileges Privileges granted to users are listed in two system views: DBA_SYS_PRIVS, and USER_SYS_PRIVS. You can find out what privileges a user currently has by running a query on tho...
2007-05-01, 5727👍, 0💬

What does an XML document actually look like
What does an XML document actually look like? The basic structure of XML is similar to other applications of SGML, including HTML. The basic components can be seen in the following examples. An XML document starts with a Prolog of the required the XML declaration &lt;?xml version="1.0" encoding=...
2007-04-11, 5726👍, 0💬

Preemptive Scheduling
What is the difference between preemptive scheduling and time slicing? Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and the...
2007-03-03, 5726👍, 0💬

Do You Know the Book "JUnit Recipes: Practical Methods for Programmer Testing"
Do You Know the Book "JUnit Recipes: Practical Methods for Programmer Testing"? You should know this book. It received some good reviews. Title: JUnit Recipes: Practical Methods for Programmer Testing Publisher: Manning Publications (July 15, 2004) Author: J. B. Rainsberger, Scott Stirling Abstract:...
2008-01-03, 5725👍, 0💬

Relation between HTML and URL
What Is the Relation between HTML and URL? URL (Uniform Resource Locator) is a compact string representation of the location for a Web document or other resource that is available on the Internet. The URL of a HTML document is usually the document file name prefixed with the domain name of your Web ...
2007-03-03, 5721👍, 0💬

When we use windows API in .NET is it managed or unmanaged code ?
.NET INTERVIEW QUESTIONS - When we use windows API in .NET is it managed or unmanaged code ? Windows API in .NET is unmanaged code.
2010-01-12, 5715👍, 0💬

How To Validate HTML Documents Online
How To Validate HTML Documents Online? If you have just finished a new HTML document, and you want to make sure that confirms with the HTML specification, you can use the HTML online validator at http://validator.w3.org/ . There are 3 ways you can use this validator: By URL - Specify the URL where y...
2007-03-03, 5711👍, 0💬

What Is Integrity?
What Is Integrity? Several points about data integrity: Assures database data and structures reflects all changes made to them in the correct sequence. Locks ensure data integrity and maximum concurrent access to data. Commit statement releases all locks. Types of locks are given below. Data Locks p...
2007-04-15, 5705👍, 0💬

Why Not Just Use a Debugger for Unit Testing?
Why Not Just Use a Debugger for Unit Testing? This is a common question in a job interview. You should answer it with these points: A debugger is designed for manual debugging and manual unit testing, not for automated unit testing. JUnit is designed for automated unit testing. Automated unit testin...
2008-02-06, 5704👍, 0💬

Serializalble and Externalizable Interfaces
What is the difference between Serializalble and Externalizable interface? When you use Serializable interface, your class is serialized automatically by default. But you can override writeObject() and readObject() two methods to control more complex object serailization process. When you use Extern...
2007-03-03, 5701👍, 0💬

What are the problems associated with using JavaScript, and are there JavaScript techniques that you discourage?
What are the problems associated with using JavaScript, and are there JavaScript techniques that you discourage? Browser version incompatibility is the biggest problem. It requires knowing how each scriptable browser version implements its object model. You see, the incompatibility rarely has to do ...
2008-07-22, 5700👍, 0💬

What Is SQL*Plus
What Is SQL*Plus? - Oracle DBA FAQ - Oracle Basic Concepts SQL*Plus is an interactive and batch query tool that is installed with every Oracle Database Server or Client installation. It has a command-line user interface, a Windows Graphical User Interface (GUI) and the iSQL*Plus web-based user inter...
2007-04-22, 5700👍, 0💬

<< < 7 8 9 10 11 12 13 14 15 16 17 > >>   Sort: Date