What is For-Each Loop?
The For-Each Version of the for Loop : It is a new and second form of for loop. A for-each stype loop is designed to cycle through a collection of objects, such as an...
The For-Each Version of the for Loop : It is a new and second form of for loop. A for-each stype loop is designed to cycle through a collection of objects, such as an...
– JavaSE 6 adds the Console class. It is used to read from and write to the console, if one exists. – It implements the Flushable interface. – Console is primarily a convenience class...
Java is a platform independent language is the most important feature of Java. The other features are: – Simple – Object Oriented – Robust and – Distributed
Scanner is a class in java.util package used for obtaining the input of the primitive types like int, double etc. and strings. It is the easiest way to read input in a Java program,...
– instanceof : It is used to check to see if an object can be cast into a specified type without throwing a cast class exception. – isInstance() : It determines if the specified...
If a method called from outside the class and it wasn’t declared static, it would have to be qualified (uselessly) with an object. Even when used within the class, there are good reasons to...
final is a modifier which can be applied to a class or a method or a variable. final class can’t be inherited, final method can’t be overridden and final variable can’t be changed. finally...
The JVM spec is the blueprint for the JVM generated and owned by Sun. The JVM implementation is the actual implementation of the spec by a vendor JVM runtime is the actual running instance...
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...
JVM is Java Virtual Machine which is a run time environment for the compiled Java class files. Java Virtual Machines operate on Java byte-code, which is normally (but not necessarily) generated from Java source...
Recent Comments