<< < 38 39 40 41 42 43 44 45 46 47 48 > >>   Sort: Rank

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, 2272👍, 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, 2232👍, 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, 2233👍, 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, 2254👍, 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, 2315👍, 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, 2332👍, 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, 2219👍, 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, 2284👍, 0💬

What is OOPS?
What is OOPS? OOP is the common abbreviation for Object-Oriented Programming.
2013-02-27, 2173👍, 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, 2181👍, 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, 2196👍, 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, 2113👍, 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, 2220👍, 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, 2348👍, 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, 2388👍, 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, 2242👍, 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, 2394👍, 0💬

What is the package?
What is the package? The package is a Java namespace or part of Java libraries. The Java API is grouped into libraries of related classes and interfaces; these libraries are known as packages.
2013-02-21, 2630👍, 0💬

What is the Java API?
What is the Java API? The Java API is a large collection of ready-made software components that provide many useful capabilities, such as graphical user interface (GUI) widgets.
2013-02-20, 2250👍, 0💬

What is the Java Virtual Machine?
What is the Java Virtual Machine? The Java Virtual Machine is a software that can be ported onto various hardware-based platforms.
2013-02-20, 2288👍, 0💬

What is the main difference between Java platform and other platforms?
What is the main difference between Java platform and other platforms? The Java platform differs from most other platforms in that it's a software-only platform that runs on top of other hardware-based platforms. The Java platform has three elements: Java programming language The Java Virtual Machin...
2013-02-19, 2281👍, 0💬

What does it mean that a method or class is abstract?
What does it mean that a method or class is abstract? An abstract class cannot be instantiated. Only its subclasses can be instantiated. You indicate that a class is abstract with the abstract keyword like this: public abstract class Container extends Component { Abstract classes may contain abstrac...
2013-02-19, 2310👍, 0💬

What does it mean that a class or member is final?
What does it mean that a class or member is final? A final class can no longer be subclassed. Mostly this is done for security reasons with basic classes like String and Integer. It also allows the compiler to make some optimizations, and makes thread safety a little easier to achieve. Methods may b...
2013-02-18, 2284👍, 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, 2265👍, 0💬

<< < 38 39 40 41 42 43 44 45 46 47 48 > >>   Sort: Rank