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

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

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, 5928👍, 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, 5927👍, 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, 5913👍, 0💬

Externalizable Interface: readExternal() and readExternal()
How many methods in the Externalizable interface? There are two methods in the Externalizable interface. You have to implement these two methods in order to make your class externalizable. These two methods are readExternal() and readExternal().
2007-03-03, 5913👍, 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, 5901👍, 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, 5894👍, 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, 5889👍, 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, 5887👍, 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, 5887👍, 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, 5882👍, 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, 5877👍, 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, 5875👍, 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, 5871👍, 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, 5853👍, 0💬

Preventing JSP Pages Being Cached by Browsers
How do I prevent the output of my JSP or Servlet pages from being cached by the browser? You will need to set the appropriate HTTP header attributes to prevent the dynamic content output by the JSP page from being cached by the browser. Just execute the following scriptlet at the beginning of your J...
2007-04-03, 5853👍, 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, 5837👍, 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, 5836👍, 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, 5830👍, 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, 5829👍, 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, 5826👍, 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, 5824👍, 0💬

What does the "Access is Denied" IE error mean?
What does the "Access is Denied" IE error mean? The "Access Denied" error in any browser is due to the following reason. A JavaScript in one window or frame is tries to access another window or frame whose document's domain is different from the document containing the script.
2008-07-08, 5820👍, 0💬

Deleting Cookies in JSP Pages
How do you delete a Cookie within a JSP? Cookie mycook = new Cookie("name","value"); response.addCookie(mycook); Cookie killmycook = new Cookie("mycook","value"); killmycook.setMaxAge(0); killmycook.setPath("/"); killmycook.addCookie(killmycoo k);
2007-04-03, 5820👍, 0💬

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