<< < 139 140 141 142 143 144 145 146 147 148 149 > >>   Sort: Date

What are synchronized methods and synchronized statements?
What are synchronized methods and synchronized statements? Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized ...
2013-06-18, 2233👍, 0💬

So can a COM object talk to a .NET object?
So can a COM object talk to a .NET object? Yes, through Runtime Callable Wrapper (RCW) or PInvoke.
2014-12-02, 2232👍, 0💬

Why do you use Perl?
Why do you use Perl? Perl is a powerful free interpreter. Perl is portable, flexible and easy to learn.
2013-08-21, 2232👍, 0💬

What is an Iterator?
What is an Iterator? Some of the collection classes provide traversal of their contents via a java.util.Iterator interface. This interface allows you to walk through a collection of objects, operating on each object in turn. Remember when using Iterators that they contain a snapshot of the collectio...
2013-04-29, 2232👍, 0💬

What is the List interface?
What is the List interface? The List interface provides support for ordered collections of objects.
2013-04-02, 2232👍, 0💬

What is the difference between the Boolean & operator and the && operator?
What is the difference between the Boolean & operator and the && operator? If an expression involving the Boolean & operator is evaluated, both operands are evaluated. Then the & operator is applied to the operand. When an expression involving the && operator is evaluated...
2012-10-18, 2232👍, 0💬

Can you make an instance of an abstract class? For example - java.util.Calender is an abstract class with a method getInstance()
Can you make an instance of an abstract class? For example - java.util.Calender is an abstract class with a method getInstance() which returns an instance of the Calender class. No! You cannot make an instance of an abstract class. An abstract class has to be sub-classed. If you have an abstract cla...
2012-08-21, 2232👍, 0💬

Return a null pointer or a pointer to 0 bytes? .....
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes? The ANSI/ISO Standard says that it may do either; the behavior is implementation-defined ortable code must either take care not to call malloc(0), or be prepared for the possibility of a null return.
2016-04-21, 2231👍, 0💬

You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK
You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK utility should be used? You need to generate a public/private key pair for using in creating a shared assembly. Given the above scenario, which .NET SDK utility should be ...
2014-03-17, 2231👍, 0💬

How to turn on Perl warnings? Why is that important?
How to turn on Perl warnings? Why is that important? Perl is very forgiving of strange and sometimes wrong code, which can mean hours spent searching for bugs and weird results. Turning on warnings helps uncover common mistakes and strange places and save a lot of debugging time in the long run. The...
2013-08-27, 2231👍, 0💬

What is difference between custom JSP tags and beans?
What is difference between custom JSP tags and beans? Custom JSP tag is a tag you defined. You define how a tag, its attributes and its body are interpreted, and then group your tags into collections called tag libraries that can be used in any number of JSP files. To use custom JSP tags, you need t...
2013-07-04, 2231👍, 0💬

Difference between Vector and ArrayList?
Difference between Vector and ArrayList? Vector is synchronized whereas arraylist is not.
2013-04-26, 2231👍, 0💬

What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body
What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement? The exception propagates up to the next higher level try-catch statement (if any) or results in the program's termination.
2013-01-18, 2231👍, 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.
2013-01-10, 2231👍, 0💬

What is the difference between a while statement and a do statement?
What is the difference between a while statement and a do statement? A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will alw...
2012-12-07, 2231👍, 0💬

If a method is declared as protected, where may the method be accessed?
If a method is declared as protected, where may the method be accessed? A protected method may only be accessed by classes or interfaces of the same package or by subclasses of the class in which it is declared.
2012-12-18, 2230👍, 0💬

What advantage do Java's layout managers provide over traditional windowing systems?
What advantage do Java's layout managers provide over traditional windowing systems? Java uses layout managers to lay out components in a consistent manner across all windowing platforms. Since Java's layout managers aren't tied to absolute sizing and positioning, they are able to accommodate platfo...
2012-12-10, 2227👍, 0💬

Name the eight primitive Java types.
Name the eight primitive Java types. The eight primitive types are byte, char, short, int, long, float, double, and boolean.
2012-11-29, 2227👍, 0💬

Give a simplest way to find out the time a method takes for execution without using any profiling tool?
Give a simplest way to find out the time a method takes for execution without using any profiling tool? Read the system time just before the method is invoked and immediately after method returns. Take the time difference, which will give you the time taken by a method for execution. To put it in co...
2013-05-24, 2226👍, 0💬

What are the Object and Class classes used for?
What are the Object and Class classes used for? The Object class is the highest-level class in the Java class hierarchy. The Class class is used to represent the classes and interfaces that are loaded by a Java program.
2013-01-25, 2226👍, 0💬

What’s the .NET datatype that allows the retrieval of data by a unique key?
What’s the .NET datatype that allows the retrieval of data by a unique key? What’s the .NET datatype that allows the retrieval of data by a unique key? * Primary * Integer * Unique Identifier * HashTable HashTable
2014-03-24, 2224👍, 0💬

Does Java provide any construct to find out the size of an object?
Does Java provide any construct to find out the size of an object? No there is not sizeof operator in Java. So there is not direct way to determine the size of an object directly in Java.
2013-05-24, 2224👍, 0💬

What are Access Specifiers available in Java?
What are Access Specifiers available in Java? ccess specifiers are keywords that determines the type of access to the member of a class. These are: Public Protected Private Defaults
2013-03-04, 2223👍, 0💬

What state is a thread in when it is executing?
What state is a thread in when it is executing? An executing thread is in the running state.
2012-12-31, 2223👍, 0💬

<< < 139 140 141 142 143 144 145 146 147 148 149 > >>   Sort: Date