<< < 122 123 124 125 126 127 128 129 130 131 132 > >>   Sort: Date

State True or False: A single .NET dll can contain unlimited classes: * True or * False?
State True or False: A single .NET dll can contain unlimited classes: * True or * False? True
2014-03-12, 2524👍, 0💬

What is the difference between final, finally and finalize?
What is the difference between final, finally and finalize? Short answer: final - declares constant finally - relates with exception handling finalize - helps in garbage collection If asked to give details, explain: final field, final method, final class try/finally, try/catch/finally protected void...
2012-09-03, 2523👍, 0💬

What is an abstract method?
What is an abstract method? An abstract method is a method whose implementation is deferred to a subclass. Or, a method that has no implementation.
2012-07-10, 2523👍, 0💬

What's the main difference between a Vector and an ArrayList?
What's the main difference between a Vector and an ArrayList? Java Vector class is internally synchronized and ArrayList is not.
2012-06-22, 2523👍, 0💬

What happens if you dont initialize an instance variable of any of the primitive types in Java?
What happens if you dont initialize an instance variable of any of the primitive types in Java? Java by default initializes it to the default value for that primitive type. Thus an int will be initialized to 0, a boolean will be initialized to false.
2013-06-27, 2522👍, 0💬

I im trying to declare a pointer and allocate some space for it
I'm trying to declare a pointer and allocate some space for it, but it's not working. What's wrong with this code? char *p; *p = malloc(10); The pointer you declared is p, not *p. When you're manipulating the pointer itself (for example when you're setting it to make it point somewhere), you just us...
2016-06-10, 2519👍, 0💬

What is the ResourceBundle class?
What is the ResourceBundle class? The ResourceBundle class is used to store locale-specific resources that can be loaded by a program to tailor the program's appearance to the particular locale in which it is being run.
2012-08-07, 2519👍, 0💬

Which of the following is the correct code for setting a Session timeout of 30 minutes
Which of the following is the correct code for setting a Session timeout of 30 minutes Which of the following is the correct code for setting a Session timeout of 30 minutes * Session.Timeout = 108000 * Session.Timeout = 1800 * Session.Timeout = 300 * Session.Timeout = 30 Answer1: Session.Timeout = ...
2014-06-16, 2515👍, 0💬

What is the difference in using request.getRequestDispatcher() and context.getRequestDispatcher()?
What is the difference in using request.getRequestDispatcher() and context.getRequestDispatcher() ?request.getRequestDispatcher(p ath):In order to create it we need to give the relative path of the resource context.getRequestDispatcher(p ath):In order to create it we need to give the absolute path o...
2013-08-12, 2514👍, 0💬

When would `local $_' in a function ruin your day?
When would `local $_' in a function ruin your day? When your caller was in the middle for a while(m//g) loop The /g state on a global variable is not protected by running local on it. That'll teach you to stop using locals. Too bad $_ can't be the target of a my() -- yet.
2013-09-20, 2510👍, 0💬

Does garbage collection guarantee that a program will not run out of memory?
Does garbage collection guarantee that a program will not run out of memory? No, it doesn't. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection.
2012-06-25, 2509👍, 0💬

Can we implement an interface in a JSP?
Can we implement an interface in a JSP? No
2013-08-10, 2508👍, 0💬

If I write return at the end of the try block, will the finally block still execute?
If I write return at the end of the try block, will the finally block still execute? Yes even if you write return as the last statement in the try block and no exception occurs, the finally block will execute. The finally block will execute and then the control return.
2013-06-04, 2506👍, 0💬

What is the purpose of the System class?
What is the purpose of the System class? The purpose of the System class is to provide access to system resources.
2012-07-07, 2505👍, 0💬

Convert Windows login to SQL login
how will you convert windows authentication mode to sql server mode?
2014-09-15, 2501👍, 0💬

How is it possible for two String objects with identical values not to be equal under the == operator? How are this() and super(
How is it possible for two String objects with identical values not to be equal under the == operator? How are this() and super() used with constructors? The == operator compares two objects to determine if they are the same objects in memory. It is possible for two String objects to have the same v...
2012-08-01, 2501👍, 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.
2012-08-01, 2500👍, 0💬

Where are shared assemblies stored?
Where are shared assemblies stored? Global assembly cache.
2014-12-19, 2499👍, 0💬

The following statement prints true or false, why?
The following statement prints true or false, why? byte[] a = { 1, 2, 3 };, byte[] b = (byte[]) a.clone(); System.out.println(a == b); The false will be printed out. Because the two arrays have distinctive memory addresses. Starting in Java 1.2, we can use java.util.Arrays.equals(a, b) to compare wh...
2012-09-11, 2499👍, 0💬

What is the benefit of subclass?
What is the benefit of subclass? Generally: The sub class inherits all the public methods and the implementation. The sub class inherits all the protected methods and their implementation. The sub class inherits all the default(non-access modifier) methods and their implementation. The sub class als...
2012-08-16, 2498👍, 0💬

Is the numeric promotion available in other plantform?
Is the numeric promotion available in other plantform? Yes. Because Java is implemented using a platform-independent virtual machine, bitwise operations always yield the same result, even when run on machines that use radically different CPUs.
2012-07-03, 2496👍, 0💬

What comes to mind when someone mentions a shallow copy in Java?
What comes to mind when someone mentions a shallow copy in Java? Object cloning.
2013-04-15, 2494👍, 0💬

Is "abc" a primitive value?
Is "abc" a primitive value? The String literal "abc" is not a primitive value. It is a String object.
2012-12-03, 2494👍, 0💬

Why Java does not support multiple inheritance ?
Why Java does not support multiple inheritance ? This is a classic question. Yes or No depends on how you look at Java. If you focus on the syntax of "extends" and compare with C++, you may answer 'No' and give explanation to support you. Or you may answer 'Yes'. Recommend you to say 'Yes'. Java DOE...
2012-08-31, 2493👍, 0💬

<< < 122 123 124 125 126 127 128 129 130 131 132 > >>   Sort: Date