Showing posts with label Core Java. Show all posts
Showing posts with label Core Java. Show all posts

Java String contains() method explained with examples Java String contains() method explained with examples

Java String contains()  method checks whether a particular string is a part of another string or not. This method returns true if a specif...

+

Java โ€“ String indexOf() Method Example Java – String indexOf() Method Example

The method  indexOf()  is used for finding out the index of the specified character or substring in a particular String. There are 4 varia...

+

Difference between >>= and >>>= Difference between >>= and >>>=

>> Signed right shift >>> Unsigned right shift he bit pattern is given by the left-hand operand, and the numb...

+

Java Finalize Method: When and How to Implement It? Java Finalize Method: When and How to Implement It?

When an object becomes  unreachable , it is flagged as  collected  by the garbage collector. If it has a  finalize()  method, it is marked ...

+

Java Abstract Class vs Interface Pros and Con's Java Abstract Class vs Interface Pros and Con's

This a quick reminder about pros and con's of Java abstract classes and interfaces: Interface A class can implement multiple interf...

+

Reading a file into collection or Array Reading a file into collection or Array

import java . io . BufferedReader ; import java . io . FileReader ; import java . io . IOException ; import java . util . ArrayLi...

+
 
Top