Category: Javaskool Category
A Java application is made up of a main() method declared as public static void that accepts a string array argument, along with any other classes that main() calls. It lives in the environment...
As long as all implementaions of java are certified by sun as 100% pure java this promise of “Write once, Run everywhere” will hold true. But as soon as various java core implemenations start...
The Java runtime environment deletes objects when it determines that they are no longer being used. This process is known as garbage collection. The Java runtime environment supports a garbage collector that periodically frees...
A StringBuffer implements a mutable sequence of characters. A StringBuffer is like a String, but can be modified. At any point in time it contains some particular sequence of characters, but the length and...
Interfaces provide more sophisticated ways to organize and control the objects in your system. The interface keyword takes the abstract concept one step further. You could think of it as a “pure” abstract class....
Below are the advantages of OOP: 1. Simplicity: software objects model real world objects, so the complexity is reduced and the program structure is very clear; 2. Modularity: each object forms a separate entity...
Several things happen in a particular order to ensure the object is constructed exactly: 1. First, Memory is allocated from heap to hold all instance variables and implementation-specific data of the object and its...
How to search a word inside a string? Here is the example that can search a word within a String object using indexOf() method which returns a position index of a word within the...
The Oracle Certification Program certifies candidates on skills and knowledge related to Oracle products and technologies. Credentials are granted based on a combination of passing exams, training and performance-based assignments, depending on the level...
What is Enum in Java? Version prior to JDK 5 lacked on feature that many programmers felt was needed : “Enumeration”. An enumeration is a list of named constants. In language such as c++,...
Recent Comments