<< < 3 4 5 6 7 8 9 10 11 12 13 > >>   Sort: Rank

What will be the output on executing the following code .
What will be the output on executing the following code . What will be the output on executing the following code. public class MyClass { public static void main (String args[] ) { int abc[] = new int [5]; System.out.println(abc); } } A Error array not initialized B 5 C null D Print some junk charac...
2013-03-08, 1928👍, 0💬

Use the Externalizable interface when you need complete control over your Bean's serialization (for example, when writing and r
Use the Externalizable interface when you need complete control over your Bean's serialization (for example, when writing and reading a specific file format). No. Earlier order is maintained.
2013-03-08, 1906👍, 0💬

What is externalization? Where is it useful??
What is externalization? Where is it useful?? Use the Externalizable interface when you need complete control over your Bean's serialization (for example, when writing and reading a specific file format).
2013-03-08, 1954👍, 0💬

What is covariant return type?
What is covariant return type? A covariant return type lets you override a superclass method with a return type that subtypes the superclass method's return type. So we can use covariant return types to minimize upcasting and downcasting. class Parent { Parent foo () { System.out.println ("Parent fo...
2013-03-07, 2034👍, 0💬

What are new language features in J2SE 5.0?
What are new language features in J2SE 5.0? Generally: 1. generics 2. static imports 3. annotations 4. typesafe enums 5. enhanced for loop 6. autoboxing/unboxing 7. varargs 8. covariant return types
2013-03-07, 1886👍, 0💬

Why are the interfaces more flexible than abstract classes?
Why are the interfaces more flexible than abstract classes? --An interface-defined type can be implemented by any class in a class hierarchy and can be extended by another interface. In contrast, an abstract-class-defined type can be implemented only by classes that subclass the abstract class. --An...
2013-03-06, 2137👍, 0💬

The superclass constructor runs before the subclass constructor ...
The superclass constructor runs before the subclass constructor ... The superclass constructor runs before the subclass constructor. The subclass's version of the overridable method will be invoked before the subclass's constructor has been invoked. If the subclass's overridable method depends on th...
2013-03-06, 1967👍, 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, 1980👍, 0💬

Describe the wrapper classes in Java.
Describe the wrapper classes in Java. Wrapper class is wrapper around a primitive data type. An instance of a wrapper class contains, or wraps, a primitive value of the corresponding type. Following table lists the primitive types and the corresponding wrapper classes: Primitive Wrapper boolean java...
2013-03-05, 1928👍, 0💬

What are Access Specifiers available in Java?
What are Access Specifiers available in Java? ccess specifiers are keywords that determines the type of access to the member of a class. These are: Public Protected Private Defaults
2013-03-04, 1948👍, 0💬

Explain the different forms of Polymorphism
Explain the different forms of Polymorphism From a practical programming viewpoint, polymorphism exists in three distinct forms in Java: Method overloading Method overriding through inheritance Method overriding through the Java interface
2013-03-04, 1939👍, 0💬

Explain the Polymorphism principle
Explain the Polymorphism principle The meaning of Polymorphism is something like one name many forms. Polymorphism enables one entity to be used as as general category for different types of actions. The specific action is determined by the exact nature of the situation. The concept of polymorphism ...
2013-03-01, 1995👍, 0💬

Explain the Inheritance principle.
Explain the Inheritance principle. Inheritance is the process by which one object acquires the properties of another object.
2013-03-01, 1947👍, 0💬

Explain the Encapsulation principle
Explain the Encapsulation principle Encapsulation is a process of binding or wrapping the data and the codes that operates on the data into a single entity. This keeps the data safe from outside interface and misuse. One way to think about encapsulation is as a protective wrapper that prevents code ...
2013-02-28, 1939👍, 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, 2050👍, 0💬

What is OOPS?
What is OOPS? OOP is the common abbreviation for Object-Oriented Programming.
2013-02-27, 1905👍, 0💬

How you can force the garbage collection?
How you can force the garbage collection? Garbage collection automatic process and can't be forced.
2013-02-27, 1906👍, 0💬

Explain garbage collection?
Explain garbage collection? Garbage collection is one of the most important feature of Java. Garbage collection is also called automatic memory management as JVM automatically removes the unused variables/objects (value is null) from the memory. User program cann't directly free the object from memo...
2013-02-26, 1913👍, 0💬

Explain the new Features of JDBC 2.0 Core API?
Explain the new Features of JDBC 2.0 Core API? The JDBC 2.0 API includes the complete JDBC API, which includes both core and Optional Package API, and provides inductrial-strength database computing capabilities. New Features in JDBC 2.0 Core API: Scrollable result sets- using new methods in the Res...
2013-02-26, 1873👍, 0💬

What is the serialization?
What is the serialization? The serialization is a kind of mechanism that makes a class or a bean persistence by having its properties or fields and state information saved and restored to and from storage.
2013-02-25, 1945👍, 0💬

Can main() method be overloaded?
Can main() method be overloaded? Yes. the main() method is a special method for a program entry. You can overload main() method in any ways. But if you change the signature of the main method, the entry point for the program will be gone.
2013-02-25, 2036👍, 0💬

Is Java code slower than native code?
Is Java code slower than native code? Not really. As a platform-independent environment, the Java platform can be a bit slower than native code. However, smart compilers, well-tuned interpreters, and just-in-time bytecode compilers can bring performance close to that of native code without threateni...
2013-02-22, 2067👍, 0💬

Explain the user defined Exceptions?
Explain the user defined Exceptions? User defined Exceptions are the separate Exception classes defined by the user for specific purposed. An user defined can created by simply sub-classing it to the Exception class. This allows custom exceptions to be generated (using throw) and caught in the same ...
2013-02-22, 1942👍, 0💬

What is native code?
What is native code? The native code is code that after you compile it, the compiled code runs on a specific hardware platform.
2013-02-21, 2103👍, 0💬

<< < 3 4 5 6 7 8 9 10 11 12 13 > >>   Sort: Rank