<< < 144 145 146 147 148 149 150 151 152 153 154 > >>   Sort: Date

What are different types of inner classes?
What are different types of inner classes? Nested top-level classes, Member classes, Local classes, Anonymous classes Nested top-level classes- If you declare a class within a class and specify the static modifier, the compiler treats the class just like any other top-level class. Any class outside ...
2013-05-13, 2138👍, 0💬

How do I sort a hash by the hash key?
How do I sort a hash by the hash key? Suppose we have a class of five students. Their names are kim, al, rocky, chrisy, and jane. Here's a test program that prints the contents of the grades hash, sorted by student name: #!/usr/bin/perl -w %grades = ( kim => 96, al => 63, rocky => 87, chrisy => 96, ...
2013-09-03, 2135👍, 0💬

If you're overriding the method equals() of an object, which other method you might also consider?
If you're overriding the method equals() of an object, which other method you might also consider? hashCode()
2013-04-15, 2133👍, 0💬

What is strong-typing versus weak-typing? Which is preferred? Why?
What is strong-typing versus weak-typing? Which is preferred? Why? Strong type is checking the types of variables as soon as possible, usually at compile time. While weak typing is delaying checking the types of the system as late as possible, usually to run-time. Which is preferred depends on what ...
2014-02-17, 2131👍, 0💬

How to open and read data files with Perl
How to open and read data files with Perl Data files are opened in Perl using the open() function. When you open a data file, all you have to do is specify (a) a file handle and (b) the name of the file you want to read from. As an example, suppose you need to read some data from a file named "check...
2013-08-22, 2131👍, 0💬

What is the difference between a.Equals(b) and a == b?
What is the difference between a.Equals(b) and a == b? Answer1: a=b is used for assigning the values (rather then comparison) and a==b is for comparison. Answer2: a == b is used to compare the references of two objects a.Equals(b) is used to compare two objects Answer3: A equals b -&gt; copies c...
2014-02-26, 2130👍, 0💬

What is Viewstate?
What is Viewstate? A server control’s view state is the accumulation of all its property values. In order to preserve these values across HTTP requests, ASP.NET server controls use this property, which is an instance of the StateBag class, to store the property values.
2014-01-01, 2128👍, 0💬

What is GAC?
What is GAC? The global assembly cache stores assemblies specifically designated to be shared by several applications on the computer. You should share assemblies by installing them into the global assembly cache only when you need to. Assemblies deployed in the global assembly cache must have a str...
2013-10-25, 2128👍, 0💬

What are different methods of session maintenance in ASP.NET?
What are different methods of session maintenance in ASP.NET? 3 types: In-process storage. Session State Service. Microsoft SQL Server. In-Process Storage The default location for session state storage is in the ASP.NET process itself. Session State Service As an alternative to using in-process stor...
2014-01-01, 2127👍, 0💬

What are new language features in J2SE 5.0?
What are new language features in J2SE 5.0? Generally: 1. generics 2. static imports 3. annotations 4. typesafe enums 5. enhanced for loop 6. autoboxing/unboxing 7. varargs 8. covariant return types
2013-03-07, 2127👍, 0💬

How do I send e-mail from a Perl/CGI program on a Unix system?
How do I send e-mail from a Perl/CGI program on a Unix system? Sending e-mail from a Perl/CGI program on a Unix computer system is usually pretty simple. Most Perl programs directly invoke the Unix sendmail program. We'll go through a quick example here. Assuming that you've already have e-mail info...
2013-09-04, 2126👍, 0💬

Name few Garbage collection algorithms?
Name few Garbage collection algorithms? Here they go: Mark and Sweep Reference counting Tracing collectors Copying collectors Heap compaction Mark-compact collectors
2013-03-20, 2126👍, 0💬

How many messaging models do JMS provide for and what are they?
How many messaging models do JMS provide for and what are they? JMS provide for two messaging models, publish-and-subscribe and point-to-point queuing.
2013-07-12, 2123👍, 0💬

Why isn't there operator overloading?
Why isn't there operator overloading? Because C++ has proven by example that operator overloading makes code almost impossible to maintain. In fact there very nearly wasn't even method overloading in Java, but it was thought that this was too useful for some very basic methods like print(). Note tha...
2013-02-08, 2123👍, 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-12-11, 2123👍, 0💬

What are scalar data and scalar variables?
What are scalar data and scalar variables? Perl has a flexible concept of data types. Scalar means a single thing, like a number or string. So the Java concept of int, float, double and string equals to Perl's scalar in concept and the numbers and strings are exchangeable. Scalar variable is a Perl ...
2013-08-28, 2119👍, 0💬

How does a try statement determine which catch clause should be used to handle an exception?
How does a try statement determine which catch clause should be used to handle an exception? When an exception is thrown within the body of a try statement, the catch clauses of the try statement are examined in the order in which they appear. The first catch clause that is capable of handling the e...
2013-01-28, 2115👍, 0💬

What is the exception that is thrown when there is an attempt to dynamically access a method that does not exist?
What is the exception that is thrown when there is an attempt to dynamically access a method that does not exist? What is the exception that is thrown when there is an attempt to dynamically access a method that does not exist? * MissingMethodException * TypeLoadException * MethodLoadException * Met...
2014-08-06, 2112👍, 0💬

Assuming $_ contains HTML, which of the following substitutions will remove all tags in it?
Assuming $_ contains HTML, which of the following substitutions will remove all tags in it? 1.s/&lt;.*&gt;//g; 2.s/&lt;.*?&gt;//gs; 3.s/&lt;\/?[A-Z]\w*(?:\s+[ A-Z]\w*(?:\s*=\s*(?:(["']).*?\ 1|[\w-.]+))?)*\s*&gt;//gsi x;You can't do that. If it weren't for HTML comments, imprope...
2013-08-29, 2110👍, 0💬

Which of the following operators has the highest precedence?
Which of the following operators has the highest precedence? * Pre Increment (++x) * Shift bits left: &lt;&lt; * Bitwise Or: | * Post Increment (x++) Shift bits left
2014-03-19, 2109👍, 0💬

How does output caching work in ASP.NET?
How does output caching work in ASP.NET? Output caching is a powerful technique that increases request/response throughput by caching the content generated from dynamic pages. Output caching is enabled by default, but output from any given response is not cached unless explicit action is taken to ma...
2013-12-30, 2108👍, 0💬

How do SQL Server 2000 and XML linked? What is SQL Server agent?
How do SQL Server 2000 and XML linked? What is SQL Server agent? Every Request or the Response to or from SQL Server is converted into XML format. Its purpose is to ease the implementation of tasks for the DBA, with its full-function scheduling engine, which allows you to schedule your own jobs and ...
2014-11-17, 2107👍, 0💬

Explain the new Features of JDBC 2.0 Core API?
Explain the new Features of JDBC 2.0 Core API? The JDBC 2.0 API includes the complete JDBC API, which includes both core and Optional Package API, and provides inductrial-strength database computing capabilities. New Features in JDBC 2.0 Core API: Scrollable result sets- using new methods in the Res...
2013-02-26, 2107👍, 0💬

What is the difference between ADO and ADO.NET?
What is the difference between ADO and ADO.NET? ADO uses Recordsets and cursors to access and modify data. Because of its inherent design, Recordset can impact performance on the server side by tying up valuable resources. In addition, COM marshalling - an expensive data conversion process - is need...
2013-10-07, 2105👍, 0💬

<< < 144 145 146 147 148 149 150 151 152 153 154 > >>   Sort: Date