Madushika SewwandiCan I modify an object by a Java method call?In programming languages there are two types of data passing, Pass-by-reference” and “pass-by-value”. Java is a “pass-by-value” language…Apr 12, 2022Apr 12, 2022
Madushika SewwandiDate and Time in JavaBefore Java 8 java.util.Date class was used for both date and time. Most of its methods are marked as deprecated now.Mar 14, 2022Mar 14, 2022
Madushika SewwandiDate in Java — Old way (Deprecated)Before Java-8, for date and time the classes in package ‘util’ were used.Mar 13, 2022Mar 13, 2022
Madushika SewwandiRegular Expressions in JavaRegular expression is simply a pattern definition using symbols for strings. We can use regular expressions to check if a string aligns…Mar 11, 2022Mar 11, 2022
Madushika SewwandiThe String PoolIn Java Virtual Machine, all the string literals are stored inside a space called the String Pool. This is also known as Intern Pool also.Mar 10, 2022Mar 10, 2022
Madushika SewwandiCreating Strings in JavaString is simply a collection of characters. It is a built-in class of Java, but it is almost used as a primitive data type such as int or…Mar 9, 2022Mar 9, 2022