ExtentReports library files used to generate reports in HTML format. These reports show the overall test result in diagrammatic format. ExtentReports Features: ExtentReports are open source library files It can also be easily integrated with TestNG. Shows result in pie chart form Generate logs Test case results with screenshots Multiple views of the result, basedRead More
allinoneblogs
Using HashSet in Java. (Collection -5)
HashSet actually uses the HashMap to create a collection of objects. But it doesn’t have any key concepts like HashMap. It creates a list of items ignoring duplicate entries. Class: HashSet Interface: Set Package: java.util Features of HashSet Duplicates elements are not allowed in Sets. Only one ‘null’ value is allowed as it doesn’t support duplicate values. Indexing ofRead More
Collection Types and features in Java. (Collection-1)
The Collection is a root Interface which contains other Interfaces like List, Queue, Map and Set. These Interfaces further contains Classes or sub-interfaces. Facts about Collection All these Classes and Interfaces make a framework structure to create a list of objects(like String, Integer, etc). It also provides common methods/features to handle and manipulate these underRead More
Basic Java – 24 || Exception Handling using Try Catch.
Exceptions are the runtime error in a program encountered while execution. Basically there are two type of Errors exist in any program. Compiler Error: These are the error in the code itself. It means syntax error. Few examples are given below: a semicolon(;) missing at the end of the statement. Grammatical error while using theRead More
Basic Java – 23 || String, StringBuffer & StringBuilder in Java.
All these classes String, StringBuffer & StringBuilder used to declare, initialize, and manipulation a String objects. String A String is a class we use to declare and initialize the string literals. These string literals are basically the group of characters. In general, strings are immutable. In other words, each time we perform any modification inRead More
Basic Java – 21 || Stack memory and Heap memory in Java.
Stack memory and Heap memory are the two important components of JVM. Whenever a program execution starts JVM allocates memory to all the class, object, methods, variables. Stack Memory Basically used for thread execution. It works in LIFO (Last in First Out) manner. As soon as any method encountered JVM allocates memory to the primitiveRead More
Basic Java – 18 || Difference between break and continue keywords.
Both break and continue are the reserved keywords in java. These are mainly used while using switch or loops in the program. break and continue In the above image, we can see the difference between these two keywords. When we are using a break keyword it exits from the current loop or a switch blockRead More