What are search for a String in java?
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...
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++,...
What is Generics? J2SE 5.0 provides compile-time type safety with the Java Collections framework through generics Generics allows you to specify, at compile-time, the types of objects you want to store in a Collection....
Synchronized blocks place locks for shorter periods than synchronized methods.
We cannot inherit a constructor. That is, you cannot create a instance of a subclass using a constructor of one of it’s superclasses. One of the main reasons is because you probably don’t want...
Java’s interface can be used to implement multiple inheritance, with one important difference from c++ way of doing multiple inheritance: the inherited interfaces must be abstract. This obviates the need to choose between different...
Java’s interface can be used to implement multiple inheritance, with one important difference from c++ way of doing multiple inheritance: the inherited interfaces must be abstract. This obviates the need to choose between different...
Everything is an object in Java( Single root hierarchy as everything gets derived from java.lang.Object). Java does not have all the complicated aspects of C++ ( For ex: Pointers, templates, unions, operator overloading, structures...
FINAL for a variable : value is constant FINAL for a method : cannot be overridden FINAL for a class : cannot be derived A final variable cannot be reassigned, but it is not...
Recent Comments