Tag: Core Java
Java Interview QuestionsJava_Language_Features
Java Exception handling explained
Posted By admin
read more
In this blog post, I will explain how Java’s exception handling works. What are the types of errors in […]
java-string-examplesStrings
How to find the number of words in a Sentence
Posted By admin
read more
In order to find the number of words in a sentence, you can use the String.split method. The following code […]
Core JavaJava Interview Questions
Object oriented principles in Java Explained in Short
Posted By admin
read more
As you probably know, Java is an Object-oriented language. There are some fundamental object-oriented principles that are supported by Java. […]
Misc-Java-Examples
How to find the largest number in an array
Posted By admin
read more
The following code demonstrates how to find the largest number in an array: So the for loop iterates […]
java-string-examplesStrings
How to check if a String has only alphabets
Posted By admin
read more
You can use Java regular expressions to check if a String has only alphabets as follows: The above code […]
java-string-examplesStrings
How to replace a character in a String with another character
Posted By admin
read more
There is a replace method provided by the String class that can be used to replace a character in a […]