<< < 136 137 138 139 140 141 142 143 144 145 146 > >>   Sort: Date

Which of these is a difference between C++ and Perl?
Which of these is a difference between C++ and Perl? Perl can have objects whose data cannot be accessed outside its class, but C++ cannot. Perl can use closures with unreachable private data as objects, and C++ doesn't support closures. Furthermore, C++ does support pointer arithmetic via `int *ip ...
2013-08-22, 2274👍, 0💬

Can applets communicate with each other?
Can applets communicate with each other? At this point in time applets may communicate with other applets running in the same virtual machine. If the applets are of the same class, they can communicate via shared static variables. If the applets are of different classes, then each will need a refere...
2013-06-14, 2274👍, 0💬

Describe the principles of OOPS
Describe the principles of OOPS There are three main principals of oops which are called Polymorphism, Inheritance and Encapsulation.
2013-02-28, 2274👍, 0💬

What does it mean that a class or member is final?
What does it mean that a class or member is final? A final class can no longer be subclassed. Mostly this is done for security reasons with basic classes like String and Integer. It also allows the compiler to make some optimizations, and makes thread safety a little easier to achieve. Methods may b...
2013-02-18, 2273👍, 0💬

Which operator is used for connecting a event with a procedure in C#?
Which operator is used for connecting a event with a procedure in C#? Which operator is used for connecting a event with a procedure in C#? * += * = * both * none +=
2014-06-23, 2272👍, 0💬

What type of parameter passing does Java support?
What type of parameter passing does Java support? In Java the arguments are always passed by value .
2013-05-16, 2272👍, 0💬

What is the difference between the paint() and repaint() methods?
What is the difference between the paint() and repaint() methods? The paint() method supports painting via a Graphics object. The repaint() method is used to cause paint() to be invoked by the AWT painting thread.
2012-12-12, 2272👍, 0💬

Is &&= a valid Java operator?
Is &&= a valid Java operator? No, it is not.
2012-11-29, 2272👍, 0💬

Can an object be garbage collected while it is still reachable?
Can an object be garbage collected while it is still reachable? A reachable object cannot be garbage collected. Only unreachable objects may be garbage collected..
2012-11-12, 2272👍, 0💬

What happens when you return a reference to a private variable?
What happens when you return a reference to a private variable? Perl keeps track of your variables, whether dynamic or otherwise, and doesn't free things before you're done using them.
2013-08-27, 2271👍, 0💬

What is casting?
What is casting? There are two types of casting, casting between primitive numeric types and casting between object references. Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values. Casting between object references is used to ...
2012-12-20, 2271👍, 0💬

What is the main difference between Java platform and other platforms?
What is the main difference between Java platform and other platforms? The Java platform differs from most other platforms in that it's a software-only platform that runs on top of other hardware-based platforms. The Java platform has three elements: Java programming language The Java Virtual Machin...
2013-02-19, 2270👍, 0💬

What is Externalizable?
What is Externalizable? Externalizable is an Interface that extends Serializable Interface. And sends data into Streams in Compressed Format. It has two methods, writeExternal(ObjectOuput out) and readExternal(ObjectInput in)
2013-02-05, 2269👍, 0💬

malloc is returning crazy pointer values ...
malloc is returning crazy pointer values, I have included the line extern void *malloc(); before I call it. malloc accepts an argument of type size_t, and size_t may be defined as unsigned long. If you are passing ints (or even unsigned ints), malloc may be receiving garbage (or similarly if you are...
2016-04-15, 2268👍, 0💬

Which one of the following objects is used to create a foreign key between two DataTables?
Which one of the following objects is used to create a foreign key between two DataTables? Which one of the following objects is used to create a foreign key between two DataTables? * DataRelation * DataRelationship * DataConstraint * DataKey DataRelation
2014-07-21, 2268👍, 0💬

How would one do a deep copy in .NET?
How would one do a deep copy in .NET? Answer1: System.Array.CopyTo() - Deep copies an Array Answer2: How would one do a deep copy in .NET? The First Approach. 1.Create a new instance. 2.Copy the properties from source instance to newly created instance. [Use reflection if you want to write a common ...
2014-02-26, 2268👍, 0💬

What are wrapper classes?
What are wrapper classes? Java provides specialized classes corresponding to each of the primitive data types. These are called wrapper classes. They are e.g. Integer, Character, Double etc.
2013-05-27, 2267👍, 0💬

What method must be implemented by all threads?
What method must be implemented by all threads? All tasks must implement the run() method, whether they are a subclass of Thread or implement the Runnable interface.
2013-01-29, 2267👍, 0💬

When is the finally clause of a try-catch-finally statement executed?
When is the finally clause of a try-catch-finally statement executed? The finally clause of the try-catch-finally statement is always executed unless the thread of execution terminates or an exception occurs within the execution of the finally clause.
2012-12-17, 2267👍, 0💬

How do I use comments within a JSP page?
How do I use comments within a JSP page? You can use "JSP-style" comments to selectively block out code while debugging or simply to comment your scriptlets. JSP comments are not visible at the client. For example: --%&gt; You can also use HTML-style comments anywhere within your JSP page. These...
2013-07-25, 2265👍, 0💬

What happens when you add a double value to a String?
What happens when you add a double value to a String? The result is a String object.
2013-01-08, 2264👍, 0💬

What is the result in program?
What is the result in program? public class test { public static void main(String [] args) { int x = 3; int y = 1; if (x = y) System.out.println("Not equal"); else System.out.println("Equal"); } } What is the result? A. The output is “Equal” B. The output in “Not Equal” C. An error at "...
2013-03-05, 2262👍, 0💬

What is a Manifest?
What is a Manifest? An assembly manifest contains all the metadata needed to specify the assembly's version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve references to resources and classes. The assembly manifest can be stored in either a...
2013-10-08, 2261👍, 0💬

How to make a class or a bean serializable?
How to make a class or a bean serializable? By implementing either the java.io.Serializable interface, or the java.io.Externalizable interface. As long as one class in a class's inheritance hierarchy implements Serializable or Externalizable, that class is serializable.
2013-04-01, 2261👍, 0💬

<< < 136 137 138 139 140 141 142 143 144 145 146 > >>   Sort: Date