The "JDK" is the Java Development Kit. I.e., the JDK is bundle of software that you can use to develop Java based software. The "JRE" is the Java Runtime Environment. I.e., the JRE is an implementation of the Java Virtual Machine which actually executes Java programs. Typically, each JDK contains one (or more) JRE's along with the various development tools like the Java source compilers, bundling and deployment tools, debuggers, development libraries, etc.
SOURCE: www.referjava.com
Wednesday, February 21, 2007
What is the diffrence between inner class and nested class?
When a class is defined within a scope od another class, then it becomes inner class.
If the access modifier of the inner class is static, then it becomes nested class.
SOURCE: www.referjava.com
If the access modifier of the inner class is static, then it becomes nested class.
SOURCE: www.referjava.com
What is the difference between an if statement and a switch statement?
The if statement is used to select among two alternatives. It uses a boolean expression to decide which alternative should be executed. The switch statement is used to select among multiple alternatives. It uses an int expression to determine which alternative should be executed.
SOURCE: www.referjava.com
SOURCE: www.referjava.com
What are synchronized methods and synchronized statements?
Synchronized methods are methods that are used to control access to an object. A thread only executes a synchronized method after it has acquired the lock for the method's object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed after a thread has acquired the lock for the object or class referenced in the synchronized statement.
SOURCE: www.referjava.com
SOURCE: www.referjava.com
How does a try statement determine which catch clause should be used to handle an exception?
When an exception is thrown within the body of a try statement, the catch clauses of the try statement are examined in the order in which they appear. The first catch clause that is capable of handling the exception is executed. The remaining catch clauses are ignored.
SOURCE: www.referjava.com
SOURCE: www.referjava.com
What are the Object and Class classes used for?
The Object class is the highest-level class in the Java class hierarchy. The Class class is used to represent the classes and interfaces that are loaded by a Java program.
SOURCE: www.referjava.com
SOURCE: www.referjava.com
What is a Java package and how is it used?
A Java package is a naming context for classes and interfaces. A package is used to create a separate name space for groups of classes and interfaces. Packages are also used to organize related classes and interfaces into a single API unit and to control accessibility to these classes and interfaces.
SOURCE: www.referjava.com
SOURCE: www.referjava.com
Subscribe to:
Posts (Atom)