<< < 130 131 132 133 134 135 136 137 138 139 140 > >>   Sort: Date

What is the purpose of finalization?
What is the purpose of finalization? The purpose of finalization is to give an unreachable object the opportunity to perform any cleanup processing before the object is garbage collected.
2012-10-17, 2382👍, 0💬

Does garbage collection guarantee that a program will not run out of memory?
Does garbage collection guarantee that a program will not run out of memory? Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create obje...
2013-06-06, 2380👍, 0💬

How to create custom exceptions?
How to create custom exceptions? Your class should extend class Exception, or some more specific type thereof.
2013-05-29, 2380👍, 0💬

What is native code?
What is native code? The native code is code that after you compile it, the compiled code runs on a specific hardware platform.
2013-02-21, 2380👍, 0💬

Where and how can you use a private constuctor.
Where and how can you use a private constuctor. Private constructor can be used if you do not want any other class to instanstiate it by using new. The instantiation is done from a static public method, which is used when dealing with the factory method pattern.
2012-08-17, 2378👍, 0💬

I want to expose my .NET objects to COM objects. Is that possible?
I want to expose my .NET objects to COM objects. Is that possible? Yes, but few things should be considered first. Classes should implement interfaces explicitly. Managed types must be public. Methods, properties, fields, and events that are exposed to COM must be public. Types must have a public de...
2014-12-10, 2376👍, 0💬

How are Java source code files named?
How are Java source code files named? A Java source code file takes the name of a public class or interface that is defined within the file. A source code file may contain at most one public class or interface. If a public class or interface is defined within a source code file, then the source code...
2012-11-01, 2375👍, 0💬

Which Container method is used to cause a container to be laid out and redisplayed?
Which Container method is used to cause a container to be laid out and redisplayed? validate()
2012-10-22, 2374👍, 0💬

How does a servlet communicate with a JSP page?
How does a servlet communicate with a JSP page? The following code snippet shows how a servlet instantiates a bean and initializes it with FORM data posted by a browser. The bean is then placed into the request, and the call is then forwarded to the JSP page, Bean1.jsp, by means of a request dispatc...
2013-08-01, 2370👍, 0💬

How many times may an object's finalize() method be invoked by the garbage collector?
How many times may an object's finalize() method be invoked by the garbage collector? An object's finalize() method may only be invoked once by the garbage collector.
2012-10-23, 2370👍, 0💬

Which java.util classes and interfaces support event handling?
Which java.util classes and interfaces support event handling? The EventObject class and the EventListener interface support event processing.
2012-09-28, 2368👍, 0💬

How can a dead thread be restarted?
How can a dead thread be restarted? A dead thread cannot be restarted.
2013-01-15, 2367👍, 0💬

Which class is the immediate superclass of the Container class?
Which class is the immediate superclass of the Container class? Component
2012-12-17, 2367👍, 0💬

What is .NET?
What is .NET? .NET is essentially a framework for software development.It is similar in nature to any other software development framework (J2EE etc) in that it provides a set of runtime containers/capabilities, and a rich set of pre-built functionality in the form of class libraries and APIs The .N...
2013-09-26, 2366👍, 0💬

What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash? 5 length() is a built-in prototyped as sub length($), and a scalar prototype silently changes aggregates into radically different forms. The scalar sense of a hash is false (0) if it's empty, otherwise it's...
2013-09-13, 2366👍, 0💬

What is the SimpleTimeZone class?
What is the SimpleTimeZone class? The SimpleTimeZone class provides support for a Gregorian calendar.
2012-11-16, 2366👍, 0💬

Is Java code slower than native code?
Is Java code slower than native code? Not really. As a platform-independent environment, the Java platform can be a bit slower than native code. However, smart compilers, well-tuned interpreters, and just-in-time bytecode compilers can bring performance close to that of native code without threateni...
2013-02-22, 2364👍, 0💬

How are commas used in the initialization and iteration parts of a for statement?
How are commas used in the initialization and iteration parts of a for statement? Commas are used to separate multiple statements within the initialization and iteration parts of a for statement.
2012-10-31, 2364👍, 0💬

What if the main method is declared as private?
What if the main method is declared as private? The program compiles properly but at runtime it will give "Main method not public." message.
2013-05-02, 2363👍, 0💬

What is the return type of a program's main() method?
What is the return type of a program's main() method? A program's main() method has a void return type.
2012-12-21, 2363👍, 0💬

What is the Dictionary class?
What is the Dictionary class? The Dictionary class provides the capability to store key-value pairs.
2012-11-08, 2363👍, 0💬

How can I print numbers with commas separating the thousands? What about currency formatted numbers?
How can I print numbers with commas separating the thousands? What about currency formatted numbers? The functions in &lt;locale.h> begin to provide some support for these operations, but there is no standard C function for doing either task. (In Standard C, the only thing printf does in respons...
2015-11-02, 2362👍, 0💬

What is the difference between a break statement and a continue statement?
What is the difference between a break statement and a continue statement? A break statement results in the termination of the statement to which it applies (switch, for, do, or while). A continue statement is used to end the current loop iteration and return control to the loop statement.
2012-10-26, 2362👍, 0💬

What does it mean?
Is char a[3] = "abc"; legal? What does it mean? It is legal in ANSI C (and perhaps in a few pre-ANSI systems), though useful only in rare circumstances. It declares an array of size three, initialized with the three characters 'a', 'b', and 'c', without the usual terminating '\0' character. The arra...
2015-12-09, 2360👍, 0💬

<< < 130 131 132 133 134 135 136 137 138 139 140 > >>   Sort: Date