Java General

Java Language

Java Language – Introduction Like C++ and Smalltalk, Java Language is object-oriented with a good support of standard class libraries, known as Java API (Application Programming Interface). Java API supports graphics, graphical user interface (GUI), mathematical and threaded operations, applets and applications etc. With its rich API, architecture neutral support and Java Virtual Machine, Java …

Java Language Read More »

Set Iterator Java

Set Iterator Java Example – Explanation – Screenshot Iteration is nothing but repeating the same operation multiple times. For this, every language, including Java, gives a control structure for loop. Especially for iterating the Data Structure elements, Java comes with three special loops given by three interfaces – Enumeration, Iterator and ListIterator. All the three …

Set Iterator Java Read More »

String Length Java

To find the String Length, the String class comes with length() method returning the number of characters as an int. Following program on String Length illustrates. public class Demo { public static void main(String args[]) { String str1 = “hello”; String str2 = “”; int x = str1.length(); System.out.println(x); System.out.println(“hello length: ” + str1.length()); System.out.println(“Empty …

String Length Java Read More »