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

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, 2197👍, 0💬

What is an abstract class?
What is an abstract class? Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie, you may not call its constructor), abstract class may contain static data. Any class with an abstract method is automatically abstract ...
2013-04-30, 2197👍, 0💬

Can I import same package/class twice? Will the JVM load the package twice at runtime?
Can I import same package/class twice? Will the JVM load the package twice at runtime? One can import the same package or same class multiple times. Neither compiler nor JVM complains abt it. And the JVM will internally load the class only once no matter how many times you import the same class.
2013-05-09, 2195👍, 0💬

How do you print out the next line from a filehandle with all its bytes reversed?
How do you print out the next line from a filehandle with all its bytes reversed? print scalar reverse scalar &lt;FH&gt; Surprisingly enough, you have to put both the reverse and the &lt;FH&gt; into scalar context separately for this to work.
2013-09-04, 2193👍, 0💬

Can you retrieve complex data types like structs from the PInvoke calls?
Can you retrieve complex data types like structs from the PInvoke calls? Yes, just make sure you re-declare that struct, so that managed code knows what to do with it.
2014-12-08, 2192👍, 0💬

What is the difference between error and an exception?
What is the difference between error and an exception? An error is an irrecoverable condition occurring at runtime. Such as OutOfMemory error. These JVM errors and you can not repair them at runtime. While exceptions are conditions that occur because of bad input etc. e.g. FileNotFoundException will...
2013-05-29, 2192👍, 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, 2191👍, 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, 2190👍, 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, 2190👍, 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, 2190👍, 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, 2189👍, 0💬

How are the elements of a GridLayout organized?
How are the elements of a GridLayout organized? The elements of a GridBad layout are of equal size and are laid out using the squares of a grid.
2013-01-01, 2189👍, 0💬

Suppose I call a COM object from a .NET applicaiton, but COM object throws an error. What happens on the .NET end?
Suppose I call a COM object from a .NET applicaiton, but COM object throws an error. What happens on the .NET end? COM methods report errors by returning HRESULTs; .NET methods report them by throwing exceptions. The runtime handles the transition between the two. Each exception class in the .NET Fr...
2014-12-15, 2188👍, 0💬

How can one prove that the array is not null but empty using one line of code?
How can one prove that the array is not null but empty using one line of code? Print args.length. It will print 0. That means it is empty. But if it would have been null then it would have thrown a NullPointerException on attempting to print args.length.
2013-05-07, 2188👍, 0💬

What is the List interface?
What is the List interface? The List interface provides support for ordered collections of objects.
2013-04-02, 2188👍, 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, 2188👍, 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, 2188👍, 0💬

Why are there no global variables in Java?
Why are there no global variables in Java? Global variables are considered bad form for a variety of reasons: · Adding state variables breaks referential transparency (you no longer can understand a statement or expression on its own: you need to understand it in the context of the settings of the ...
2013-02-18, 2188👍, 0💬

What JSP lifecycle methods can I override?
What JSP lifecycle methods can I override? You cannot override the _jspService() method within a JSP page. You can however, override the jspInit() and jspDestroy() methods within a JSP page. jspInit() can be useful for allocating resources like database connections, network connections, and so forth...
2013-07-24, 2185👍, 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, 2183👍, 0💬

How can I enable session tracking for JSP pages if the browser has disabled cookies?
How can I enable session tracking for JSP pages if the browser has disabled cookies? We know that session tracking uses cookies by default to associate a session identifier with a unique user. If the browser does not support cookies, or if cookies are disabled, you can still enable session tracking ...
2013-07-20, 2183👍, 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...
2013-06-12, 2183👍, 0💬

Difference between Swing and Awt?
Difference between Swing and Awt? AWT are heavy-weight componenets. Swings are light-weight components. Hence swing works faster than AWT.
2013-04-26, 2180👍, 0💬

What class of exceptions are generated by the Java run-time system?
What class of exceptions are generated by the Java run-time system? The Java runtime system generates RuntimeException and Error exceptions.
2012-12-24, 2180👍, 0💬

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