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

What is the output of x &gt y? a:b = p*q when x=1,y=2,p=3,q=4?
What is the output of x &gt y? a:b = p*q when x=1,y=2,p=3,q=4? When this kind of question has been asked, find the problems you think is necessary to ask back before you give an answer. Ask if variables a and b have been declared or initialized. If the answer is yes. You can say that the syntax ...
2012-08-21, 2608👍, 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, 2605👍, 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, 2604👍, 0💬

What is daemon thread and which method is used to create the daemon thread?
What is daemon thread and which method is used to create the daemon thread? Daemon thread is a low priority thread which runs intermittently in the back ground doing the garbage collection operation for the java runtime system. setDaemon method is used to create a daemon thread.
2013-06-14, 2604👍, 0💬

Which non-Unicode letter characters may be used as the first character of an identifier?
Which non-Unicode letter characters may be used as the first character of an identifier? The non-Unicode letter characters $ and _ may appear as the first character of an identifier
2012-12-19, 2603👍, 0💬

What restrictions are placed on the location of a package statement within a source code file?
What restrictions are placed on the location of a package statement within a source code file? A package statement must appear as the first line in a source code file (excluding blank lines and comments).
2012-10-02, 2603👍, 0💬

What is the difference between fgetpos/fsetpos and ftell/fseek? What are fgetpos and fsetpos good for?
What is the difference between fgetpos/fsetpos and ftell/fseek? What are fgetpos and fsetpos good for? ftell and fseek use type long int to represent offsets (positions) in a file, and may therefore be limited to offsets which can be represented in a long int. (Type long int is not guaranteed to hol...
2015-10-14, 2602👍, 0💬

What is the Locale class?
What is the Locale class? The Locale class is used to tailor program output to the conventions of a particular geographic, political, or cultural region.
2012-07-09, 2600👍, 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, 2599👍, 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, 2599👍, 0💬

How to define an Interface?
How to define an Interface? In Java Interface defines the methods but does not implement them. Interface can include constants. A class that implements the interfaces is bound to implement all the methods defined in Interface. Emaple of Interface: public interface sampleInterface { public void funct...
2012-05-24, 2599👍, 0💬

How to dereference a reference?
How to dereference a reference? There are a number of ways to dereference a reference. Using two dollar signs to dereference a scalar. $original = $$strref; Using @ sign to dereference an array. @list = @$arrayref; Similar for hashes.
2013-09-13, 2598👍, 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-07-03, 2597👍, 0💬

Where are shared assemblies stored?
Where are shared assemblies stored? Global assembly cache.
2014-12-19, 2596👍, 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, 2596👍, 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, 2593👍, 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, 2593👍, 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, 2592👍, 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, 2592👍, 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, 2590👍, 0💬

Name Container classes
Name Container classes Window, Frame, Dialog, FileDialog, Panel, Applet, or ScrollPane
2013-04-02, 2584👍, 0💬

What is a native method?
What is a native method? A native method is a method that is implemented in a language other than Java.
2012-06-27, 2582👍, 0💬

How do you find the length of an array?
How do you find the length of an array? $@array
2013-09-11, 2581👍, 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, 2581👍, 0💬

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