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

Can a Byte object be cast to a double value?
Can a Byte object be cast to a double value? No, an object cannot be cast to a primitive value.
2012-11-05, 2535👍, 0💬

How to make an array copy from System?
How to make an array copy from System? There is a method called arraycopy in the System class. You can do it: System.arraycopy(sourceArray, srcOffset, destinationArray, destOffset, numOfElements2Copy); When you use this method, the destinationArray will be filled with the elements of sourceArray at ...
2012-09-04, 2534👍, 0💬

What is the purpose of the finally clause of a try-catch-finally statement?
What is the purpose of the finally clause of a try-catch-finally statement? The finally clause is used to provide the capability to execute code no matter whether or not an exception is thrown or caught.
2012-07-09, 2533👍, 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, 2531👍, 0💬

Can an object's finalize() method be invoked while it is reachable?
Can an object's finalize() method be invoked while it is reachable? An object's finalize() method cannot be invoked by the garbage collector while the object is still reachable. However, an object's finalize() method may be invoked by other objects.
2012-10-03, 2530👍, 0💬

In System.out.println(),what is System,out and println,pls explain?
In System.out.println(),what is System,out and println,pls explain? System is a predefined final class,out is a PrintStream object acting as a field member and println is a built-in overloaded method in the out object.
2012-08-20, 2529👍, 0💬

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

What is thread?
What is thread? A thread is an independent path of execution in a system.
2012-06-07, 2525👍, 0💬

What's the difference between an interface and an abstract class?
What's the difference between an interface and an abstract class? An abstract class may contain code in method bodies, which is not allowed in an interface. With abstract classes, you have to inherit your class from it and Java does not allow multiple inheritance. On the other hand, you can implemen...
2012-05-21, 2525👍, 0💬

How does Java handle integer overflows and underflows?
How does Java handle integer overflows and underflows? It uses those low order bytes of the result that can fit into the size of the type allowed by the operation.
2012-09-24, 2524👍, 0💬

Explain the usage of the keyword transient?
Explain the usage of the keyword transient? This keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero for integers).
2012-07-31, 2522👍, 0💬

What are PDBs? Where must they be located for debugging to work?
What are PDBs? Where must they be located for debugging to work? Answer1: To debug precompiled components such as business objects and code-behind modules, you need to generate debug symbols. To do this, compile the components with the debug flags by using either Visual Studio .NET or a command line...
2014-02-18, 2521👍, 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, 2520👍, 0💬

What is the easiest way to download the contents of a URL with Perl?
What is the easiest way to download the contents of a URL with Perl? Once you have the libwww-perl library, LWP.pm installed, the code is this: #!/usr/bin/perl use LWP::Simple; $url = get 'http://www.websitename.com/';
2013-09-18, 2519👍, 0💬

What is synchronization and why is it important?
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...
2012-09-17, 2518👍, 0💬

What's the difference between the methods sleep() and wait()
What's the difference between the methods sleep() and wait() The code sleep(1000); puts thread aside for exactly one second. The code wait(1000), causes a wait of up to one second. A thread could stop waiting earlier if it receives the notify() or notifyAll() call. The method wait() is defined in th...
2012-09-11, 2517👍, 0💬

What is the difference between the JDK 1.02 event model and the event-delegation model introduced with JDK 1.1?
What is the difference between the JDK 1.02 event model and the event-delegation model introduced with JDK 1.1? The JDK 1.02 event model uses an event inheritance or bubbling approach. In this model, components are required to handle their own events. If they do not handle a particular event, the ev...
2012-12-27, 2516👍, 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, 2516👍, 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, 2514👍, 0💬

How do I use a scriptlet to initialize a newly instantiated bean?
How do I use a scriptlet to initialize a newly instantiated bean? A jsp:useBean action may optionally have a body. If the body is specified, its contents will be automatically invoked when the specified bean is instantiated. Typically, the body will contain scriptlets or jsp:setProperty tags to init...
2013-08-07, 2514👍, 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, 2513👍, 0💬

What is weak reference in Java
What is weak reference in Java A weak reference is one that does not prevent the referenced object from being garbage collected. You might use them to manage a HashMap to look up a cache of objects. A weak reference is a reference that does not keep the object it refers to alive. A weak reference is...
2012-09-10, 2513👍, 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, 2513👍, 0💬

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