<< < 125 126 127 128 129 130 131 132 133 134 135 > >>   Sort: Date

What is the difference between static and non-static variables?
What is the difference between static and non-static variables? A static variable is associated with the class as a whole rather than with specific instances of a class. Non-static variables take on unique values with each object instance.
2012-07-26, 2435👍, 0💬

Does Perl have reference type?
Does Perl have reference type? Yes. Perl can make a scalar or hash type reference by using backslash operator. For example $str = "here we go"; # a scalar variable $strref = \$str; # a reference to a scalar @array = (1..10); # an array $arrayref = \@array; # a reference to an array Note that the ref...
2013-09-12, 2434👍, 0💬

What's the difference between /^Foo/s and /^Foo/?
What's the difference between /^Foo/s and /^Foo/? The second would match Foo other than at the start of the record if $* were set. The deprecated $* flag does double duty, filling the roles of both /s and /m. By using /s, you suppress any settings of that spooky variable, and force your carets and d...
2013-09-12, 2434👍, 0💬

What is an object's lock and which objects have locks?
What is an object's lock and which objects have locks? An object's lock is a mechanism that is used by multiple threads to obtain synchronized access to the object. A thread may execute a synchronized method of an object only after it has acquired the object's lock. All objects and classes have lock...
2012-11-07, 2434👍, 0💬

What's the difference between constructors and other methods?
What's the difference between constructors and other methods? Constructors must have the same name as the class and can not return a value. They are only called once while regular methods could be called many times.
2012-08-27, 2434👍, 0💬

What is JSP page?
What is JSP page? A JSP page is a text-based document that contains two types of text: static template data, which can be expressed in any text-based format such as HTML, SVG, WML, and XML, and JSP elements, which construct dynamic content.
2013-07-08, 2430👍, 0💬

What kind of security tools are available in J2SE 5.0?
What kind of security tools are available in J2SE 5.0? There are three tools that can be used to protect application working within the scope of security policies set at remote sites. keytool -- used to manage keystores and certificates. jarsigner -- used to generate and verify JAR signatures. polic...
2012-09-03, 2430👍, 0💬

Can I stop JSP execution while in the midst of processing a request?
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...
2013-07-29, 2426👍, 0💬

What interface must an object implement before it can be written to a stream as an object?
What interface must an object implement before it can be written to a stream as an object? An object must implement the Serializable or Externalizable interface before it can be written to a stream as an object.
2012-08-06, 2425👍, 0💬

What is the difference between a Window and a Frame?
What is the difference between a Window and a Frame? The Frame class extends Window to define a main application window that can have a menu bar.
2012-07-13, 2425👍, 0💬

What is the List interface?
What is the List interface? The List interface provides support for ordered collections of objects.
2012-09-24, 2424👍, 0💬

What are the different types of inner classes?
What are the different types of inner classes? There are four different types of inner classes in Java. They are: a)Static member classes , a static member class has access to all static methods of the parent, or top-level, class b) Member classes, the member class is instance specific and has acces...
2012-09-07, 2424👍, 0💬

How do you pass control from one JSP page to another?
How do you pass control from one JSP page to another? Use the following ways to pass control of a request from one servlet to another or one jsp to another. The RequestDispatcher object ‘s forward method to pass the control. The response.sendRedirect method
2013-07-31, 2422👍, 0💬

What event results from the clicking of a button?
What event results from the clicking of a button? The ActionEvent event is generated as the result of the clicking of a button.
2012-12-06, 2421👍, 0💬

The code in a finally clause will never fail to execute, right?
The code in a finally clause will never fail to execute, right? Using System.exit(1); in try block will not allow finally code to execute.
2013-07-11, 2420👍, 0💬

How can I dynamically allocate arrays?
How can I dynamically allocate arrays? The equivalence between arrays and pointers allows a pointer to malloc'ed memory to simulate an array quite effectively. After executing #include &lt;stdlib.h> int *dynarray; dynarray = malloc(10 * sizeof(int)); (and if the call to malloc succeeds), you can...
2016-04-23, 2418👍, 0💬

Are COM objects managed or unmanaged?
Are COM objects managed or unmanaged? Since COM objects were written before .NET, apparently they are unmanaged. Any code not written in the Microsoft .NET framework environment is UNMANAGED. So naturally COM+ is unmanaged because it is written in Visual Basic 6.
2014-12-02, 2417👍, 0💬

What method must be overridden in a custom control?
What method must be overridden in a custom control? What method must be overridden in a custom control? * The Paint() method * The Control_Build() method * The Render() method * The default constructor The Render() method
2014-08-14, 2417👍, 0💬

What does this do? gacutil /l | find /i “about”
What does this do? gacutil /l | find /i “about” Answer1: This command is used to install strong typed assembly in GAC Answer2: gacutil.exe is used to install strong typed assembly in GAC. gacutil.exe /l is used to lists the contents of the global assembly cache. |(pipe) symbol is used to filte...
2014-02-19, 2417👍, 0💬

How can you write a loop indefinitely?
How can you write a loop indefinitely? for(;;)--for loop; while(true)--always true, etc.
2012-06-27, 2417👍, 0💬

This class (IncrementImpl) will be used by various threads concurrently; can you see the inherent flaw(s)? How would you improve
This class (IncrementImpl) will be used by various threads concurrently; can you see the inherent flaw(s)? How would you improve it? public class IncrementImpl { private static int counter = 0; public synchronized void increment() { counter++; } public int getCounter() { return counter; } } The coun...
2012-08-28, 2416👍, 0💬

How do you restrict a user to cut and paste from the html page?
How do you restrict a user to cut and paste from the html page? Using Servlet or client side scripts to lock keyboard keys. It is one of solutions.
2012-08-10, 2416👍, 0💬

What is the relationship between the Canvas class and the Graphics class?
What is the relationship between the Canvas class and the Graphics class? A Canvas object provides access to a Graphics object via its paint() method.
2012-11-02, 2415👍, 0💬

What is the difference between the paint() and repaint() methods?
What is the difference between the paint() and repaint() methods? The paint() method supports painting via a Graphics object. The repaint() method is used to cause paint() to be invoked by the AWT painting thread.
2012-07-26, 2415👍, 0💬

<< < 125 126 127 128 129 130 131 132 133 134 135 > >>   Sort: Date