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

What is the difference between Debug.Write and Trace.Write? When should each be used?
What is the difference between Debug.Write and Trace.Write? When should each be used? Answer1: The Debug.Write call won’t be compiled when the DEBUG symbol is not defined (when doing a release build). Trace.Write calls will be compiled. Debug.Write is for information you want only in debug builds...
2014-02-24, 2179👍, 0💬

Name four Container classes.
Name four Container classes. Window, Frame, Dialog, FileDialog, Panel, Applet, or ScrollPane
2012-12-21, 2179👍, 0💬

Which dll is required to translate XML to SQL in IIS ?
Which dll is required to translate XML to SQL in IIS ? Microsoft.data.sqlxml.dll
2013-12-24, 2177👍, 0💬

How to read from a pipeline with Perl
How to read from a pipeline with Perl Example 1: To run the date command from a Perl program, and read the output of the command, all you need are a few lines of code like this: open(DATE, "date|"); $theDate = &lt;DATE&gt;; close(DATE); The open() function runs the external date command, the...
2013-09-05, 2176👍, 0💬

What methods are used to get and set the text label displayed by a Button object?
What methods are used to get and set the text label displayed by a Button object? getLabel() and setLabel()
2013-01-30, 2176👍, 0💬

If we develop an application that must accommodate multiple security levels through secure login and ASP.NET web application is
If we develop an application that must accommodate multiple security levels through secure login and ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users? If we develop an application t...
2014-08-27, 2174👍, 0💬

What is OOPS?
What is OOPS? OOP is the common abbreviation for Object-Oriented Programming.
2013-02-27, 2173👍, 0💬

How can we make a class Singleton
How can we make a class Singleton A) If the class is Serializable class Singleton implements Serializable { private static Singleton instance; private Singleton() { } public static synchronized Singleton getInstance() { if (instance == null) instance = new Singleton(); return instance; } /** If the ...
2013-03-18, 2171👍, 0💬

How is static Synchronization different form non-static synchronization?
How is static Synchronization different form non-static synchronization? When Synchronization is applied on a static Member or a static block, the lock is performed on the Class and not on the Object, while in the case of a Non-static block/member, lock is applied on the Object and not on class. [Tr...
2013-03-19, 2169👍, 0💬

Why can't I say just abs() or sin() instead of Math.abs() and Math.sin()?
Why can't I say just abs() or sin() instead of Math.abs() and Math.sin()? The import statement does not bring methods into your local name space. It lets you abbreviate class names, but not get rid of them altogether. That's just the way it works, you'll get used to it. It's really a lot safer this ...
2013-02-15, 2169👍, 0💬

What are the two basic ways in which classes that can be run as threads may be defined?
What are the two basic ways in which classes that can be run as threads may be defined? A thread class may be declared as a subclass of Thread, or it may implement the Runnable interface.
2013-01-31, 2166👍, 0💬

What is the output of the following Perl program?
What is the output of the following Perl program? 1 $p1 = "prog1.java"; 2 $p1 =~ s/(.*)\.java/$1.cpp/; 3 print "$p1\n"; prog1.cpp
2013-08-30, 2165👍, 0💬

ASP.NET interview questions only (2)
ASP.NET interview questions only (2) 1. What is a static class? 2. What is static member? 3. What is static function? 4. What is static constructor? 5. How can we inherit a static variable? 6. How can we inherit a static member? 7. Can we use a static function with a non-static variable? 8. How can ...
2014-01-08, 2162👍, 0💬

What is a Throughput Collector?
What is a Throughput Collector? The throughput collector is a generational collector similar to the default collector but with multiple threads used to do the minor collection. The major collections are essentially the same as with the default collector. By default on a host with N CPUs, the through...
2013-03-25, 2162👍, 0💬

What are the advantages and drawbacks of using ADO.NET?
What are the advantages and drawbacks of using ADO.NET? Pros ==== ADO.NET is rich with plenty of features that are bound to impress even the most skeptical of programmers. If this weren’t the case, Microsoft wouldn’t even be able to get anyone to use the Beta. What we’ve done here is come ...
2013-12-13, 2161👍, 0💬

How are this() and super() used with constructors?
How are this() and super() used with constructors? This() is used to invoke a constructor of the same class. super() is used to invoke a superclass constructor.
2013-06-13, 2160👍, 0💬

What is the difference between a constructor and a method?
What is the difference between a constructor and a method? A constructor is a member function of a class that is used to create objects of that class. It has the same name as the class itself, has no return type, and is invoked using the new operator. A method is an ordinary member function of a cla...
2013-04-29, 2160👍, 0💬

What will be the output on executing the following code...
What will be the output on executing the following code... What will be the output on executing the following code. public class MyClass { public static void main (String args[] ) { int abc[] = new int [5]; System.out.println(abc[0]); } } A Error array not initialized B 5 C 0 D Print some junk chara...
2013-03-11, 2159👍, 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, 2157👍, 0💬

What is Session Facade pattern?
What is Session Facade pattern? Session facade is one design pattern that is often used while developing enterprise applications. It is implemented as a higher level component (i.e.: Session EJB), and it contains all the iteractions between low level components (i.e.: Entity EJB). It then provides a...
2013-03-15, 2157👍, 0💬

What is a marker interface ?
What is a marker interface ? An interface that contains no methods. Eg: Serializable, Cloneable, SingleThreadModel etc. It is used to just mark java classes that support certain capability.
2013-03-11, 2157👍, 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, 2155👍, 0💬

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

Which methods of Serializable interface should I implement?
Which methods of Serializable interface should I implement? The serializable interface is an empty interface, it does not contain any methods. So we do not implement any methods.
2013-05-20, 2154👍, 0💬

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