Paul Richard has Published 76 Articles

When to use LinkedList over ArrayList in Java

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:21

2K+ Views

LinkedList should be used where modifications to a collection are frequent like addition/deletion operations. LinkedList is much faster as compare to ArrayList in such cases. In case of read-only collections or collections which are rarely modified, ArrayList is suitable.

How do I use capturing groups in Java Regex?

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:21

76 Views

https://www.tutorialspoint.com/javaregex/javaregex_capturing_groups.htm

Why C++ is the Best Programming Language?

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:21

845 Views

C++ is known to be a very powerful language. C++ allows you to have a lot of control as to how you use computer resources, so in the right hands, its speed and ability to cheaply use resources should be able to surpass other languages. Thanks to C++'s performance, it ... Read More

Which package is used for pattern matching with regular expressions in java?

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:20

185 Views

Java provides the java.util.regex package for pattern matching with regular expressions.

What is the difference between a String object and a String literal in Java?

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:20

680 Views

When the String literal used to create String, JVM initially checks weather String with the same value in the String constant pool, if available it creates another reference to it else it creates a new object and stores it in the String constant pool.In case of an object, each time you instantiate ... Read More

What is the scope of public access modifier in Java?

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:20

552 Views

The public modifier has the widest scope. When a class or its members declared public they are accessible from everywhere. A default class or its members are available to any other class in the same package. However, if the public class we are trying to access is in a different ... Read More

Previous 1 ... 4 5 6 7 8
Advertisements