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

How can I find out how much memory is available?
How can I find out how much memory is available? Your operating system may provide a routine which returns this information, but it's quite system-dependent. (Also, the number may vary over time.) If you're trying to predict whether you'll be able to allocate a certain amount of memory, just try it-...
2016-04-23, 2490👍, 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, 2489👍, 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, 2487👍, 0💬

Why does Perl not have overloaded functions?
Why does Perl not have overloaded functions? Because you can inspect the argument count, return context, and object types all by yourself. In Perl, the number of arguments is trivially available to a function via the scalar sense of @_, the return context via wantarray(), and the types of the argume...
2013-09-06, 2486👍, 0💬

What is a Strong Name?
What is a Strong Name? A strong name consists of the assembly's identity its simple text name, version number, and culture information (if provided) plus a public key and a digital signature. It is generated from an assembly file (the file that contains the assembly manifest, which in turn contains ...
2013-10-08, 2482👍, 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, 2481👍, 0💬

I can’t import the COM object that I have on my machine. Did you write that object?
I can’t import the COM object that I have on my machine. Did you write that object? You can only import your own objects. If you need to use a COM component from another developer, you should obtain a Primary Interop Assembly (PIA) from whoever authored the original object. The answer to (5) is o...
2014-12-04, 2480👍, 0💬

How many languages .NET is supporting now?
How many languages .NET is supporting now? When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. The site DotNetLanguages.Net says 44 languages are supported.
2013-09-26, 2480👍, 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, 2479👍, 0💬

Can a double value be cast to a byte?
Can a double value be cast to a byte? Yes, a double value can be cast to a byte.
2012-10-25, 2477👍, 0💬

The code used to turn off buffering is * Buffering = false...
The code used to turn off buffering is * Buffering = false... The code used to turn off buffering is * Buffering = false * OutputBuffer = false * BufferOutput = false * Buffer = Off Answer1: Buffer=true Answer2: Buffer=false
2014-03-14, 2476👍, 0💬

Why are the interfaces more flexible than abstract classes?
Why are the interfaces more flexible than abstract classes? --An interface-defined type can be implemented by any class in a class hierarchy and can be extended by another interface. In contrast, an abstract-class-defined type can be implemented only by classes that subclass the abstract class. --An...
2013-03-06, 2474👍, 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, 2474👍, 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, 2473👍, 0💬

How would you make a copy of an entire Java object with its state?
How would you make a copy of an entire Java object with its state? Have this class implement Cloneable interface and call its method clone().
2013-04-16, 2472👍, 0💬

What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy? The Reader/Writer class hierarchy is character-oriented, and the InputStream/OutputStream class hierarchy is byte-oriented.
2012-11-15, 2470👍, 0💬

What is a Container in a GUI?
What is a Container in a GUI? A Container contains and arranges other components (including other containers) through the use of layout managers, which use specific layout policies to determine where components should go as a function of the size of the container.
2012-08-13, 2469👍, 0💬

How do you call unmanaged methods from your .NET code through PInvoke?
How do you call unmanaged methods from your .NET code through PInvoke? Supply a DllImport attribute. Declare the methods in your .NET code as static extern. Do not implement the methods as they are implemented in your unmanaged code, you’re just providing declarations for method signatures.
2014-12-08, 2467👍, 0💬

What is the relationship between an event-listener interface and an event-adapter class?
What is the relationship between an event-listener interface and an event-adapter class? An event-listener interface defines the methods that must be implemented by an event handler for a particular kind of event. An event adapter provides a default implementation of an event-listener interface.
2012-12-03, 2466👍, 0💬

What is the purpose of the finally clause of a try-catch-finally statement? garbage collector?
What is the purpose of the finally clause of a try-catch-finally statement? garbage collector? The finally clause is used to provide the capability to execute code no matter whether or not an exception is thrown or caught.
2012-10-23, 2465👍, 0💬

What is JSP technology?
What is JSP technology? Java Server Page is a standard Java extension that is defined on top of the servlet Extensions. The goal of JSP is the simplified creation and management of dynamic Web pages. JSPs are secure, platform-independent, and best of all, make use of Java as a server-side scripting ...
2013-07-05, 2464👍, 0💬

What is shallow copy or shallow clone in array cloning?
What is shallow copy or shallow clone in array cloning? Cloning an array invloves creating a new array of the same size and type and copying all the old elements into the new array. But such copy is called shallow copy or shallow clone because any changes to the object would be reflected in both arr...
2012-09-05, 2464👍, 0💬

How to pass information from JSP to included JSP?
How to pass information from JSP to included JSP? Using &lt;%jsp:param&gt; tag.
2013-08-13, 2463👍, 0💬

How do you create a read-only collection?
How do you create a read-only collection? The Collections class has six methods to help out here: 1. unmodifiableCollection(Collect ionc) 2. unmodifiableList(List list) 3. unmodifiableMap(Map m) 4. unmodifiableSet(Set s) 5. unmodifiableSortedMap(SortedMa pm) 6. unmodifiableSortedSet(SortedSe ts) If ...
2012-08-30, 2461👍, 0💬

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