<< < 115 116 117 118 119 120 121 122 123 124 125 > >>   Sort: Date

What’s the best way to declare and define global variables?
What’s the best way to declare and define global variables? The best way to declare global variables is to declare them after including all the files so that it can be used in all the functions.
2012-03-06, 2792👍, 0💬

How are Observer and Observable used?
How are Observer and Observable used? Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated, it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by obj...
2012-05-31, 2790👍, 0💬

State True or False: C# supports multiple-inheritance: * True or * False?
State True or False: C# supports multiple-inheritance: * True or * False? False
2014-03-21, 2789👍, 0💬

Write a fucntion that will reverse a string.
Write a fucntion that will reverse a string. char *strrev(char *s) { int i = 0, len = strlen(s); char *str; if ((str = (char *)malloc(len+1)) == NULL) /*cannot allocate memory */ err_num = 2; return (str); } while(len) str[i++]=s[–len]; str[i] = NULL; return (str); }
2012-04-11, 2789👍, 0💬

Can you have virtual functions in Java?
Can you have virtual functions in Java? Yes, all functions in Java are virtual by default. This is actually a pseudo trick question because the word "virtual" is not part of the naming convention in Java (as it is in C++, C-sharp and VB.NET), so this would be a foreign concept for someone who has on...
2012-05-16, 2787👍, 0💬

What is the numeric promotion?
What is the numeric promotion? Numeric promotion is used with both unary and binary bitwise operators. This means that byte, char, and short values are converted to int values before a bitwise operator is applied. If a binary bitwise operator has one long operand, the other operand is converted to a...
2012-07-02, 2786👍, 0💬

When is a template a better solution than a base class?
When is a template a better solution than a base class? When you are designing a generic class to contain or otherwise manage objects of other types, when the format and behavior of those other types are unimportant to their containment or management, and particularly when those other types are unkn...
2012-03-20, 2785👍, 0💬

What are wrapped classes?
What are wrapped classes? Wrapped classes are classes that allow primitive types to be accessed as objects.
2012-06-25, 2784👍, 0💬

What is an HTML tag? C++
What is an HTML tag? C++ Answer: An HTML tag is a syntactical construct in the HTML language that abbreviates specific instructions to be executed when the HTML script is loaded into a Web browser. It is like a method in Java, a function in C++, a procedure in Pascal, or a subroutine in FORTRAN.
2012-02-29, 2784👍, 0💬

What is the difference between directive include and jsp include?
What is the difference between directive include and jsp include? &lt;%@ include&gt; : Used to include static resources during translation time. : Used to include dynamic content or static content during runtime.
2013-08-19, 2783👍, 0💬

What are the high-level thread states?
What are the high-level thread states? The high-level thread states are ready, running, waiting, and dead.
2012-06-15, 2782👍, 0💬

What is the above sample code an example of?
class Foo; What is the above sample code an example of? 1) A class constructor 2) A class object instantiation 3) A class definition 4) A class declaration 5) A syntax error
2012-04-25, 2780👍, 0💬

What is the immediate superclass of the Dialog class?
What is the immediate superclass of the Dialog class? Window.
2012-10-05, 2773👍, 0💬

What is function overloading and operator overloading?
What is function overloading and operator overloading? Function overloading: C++ enables several functions of the same name to be defined, as long as these functions have different sets of parameters (at least as far as their types are concerned). This capability is called function overloading. When...
2012-01-25, 2772👍, 0💬

How the object oriented approach helps us keep complexity of software development under control?
How the object oriented approach helps us keep complexity of software development under control? We can discuss such issue from the following aspects: Objects allow procedures to be encapsulated with their data to reduce potential interference. Inheritance allows well-tested procedures to be reused ...
2012-08-14, 2760👍, 0💬

How many methods in the Serializable interface?
How many methods in the Serializable interface? There is no method in the Serializable interface. The Serializable interface acts as a marker, telling the object serialization tools that your class is serializable.
2012-05-28, 2760👍, 0💬

Does a class inherit the constructors of its superclass?
Does a class inherit the constructors of its superclass? A class does not inherit constructors from any of its superclasses.
2012-07-20, 2756👍, 0💬

Why do we need to use getSystemResource() and getSystemResources() method to load resources?
Why do we need to use getSystemResource() and getSystemResources() method to load resources? Because we want to look for resources strictly from the system classpath, These methods use the system ClassLoader to locate resources, which gives you stricter control of the resources used by the applicati...
2012-09-12, 2755👍, 0💬

An application needs to load a library before it starts to run, how to code??
An application needs to load a library before it starts to run, how to code?? One option is to use a static block to load a library before anything is called. For example, class Test { static { System.loadLibrary("path-to-li brary-file");} .... } When you call new Test(), the static block will be ca...
2012-05-18, 2753👍, 0💬

Write a Struct Time where integer m, h, s are its members
Write a Struct Time where integer m, h, s are its members struct Time { int m; int h; int s; };
2012-01-20, 2753👍, 0💬

What is the difference between throw and throws keywords?
What is the difference between throw and throws keywords? The throw keyword denotes a statement that causes an exception to be initiated. It takes the Exception object to be thrown as argument. The exception will be caught by an immediately encompassing try-catch construction or propagated further u...
2012-07-19, 2751👍, 0💬

What is the difference between Serializalble and Externalizable interface?
What is the difference between Serializalble and Externalizable interface? When you use Serializable interface, your class is serialized automatically by default. But you can override writeObject() and readObject() two methods to control more complex object serailization process. When you use Extern...
2012-05-29, 2750👍, 0💬

What is a transient variable?
What is a transient variable? A transient variable is a variable that may not be serialized. If you don't want some field to be serialized, you can mark that field transient or static.
2012-05-30, 2747👍, 0💬

Can We Multiple Script Manager in Ajax?
Can We Multiple Script Manager in Ajax? Can We have multiple content place holder in Master pages in asp.net? In Javascript While click a submit at the time a new text box will be displayed ? Give examples and their methods used
2013-10-23, 2744👍, 0💬

<< < 115 116 117 118 119 120 121 122 123 124 125 > >>   Sort: Date