Skip to main content

Posts

JAVA 8 Features

 Overview of Java 8 Features Some of the important Java 8 features are; 1) forEach() method in Iterable interface 2) default and static methods in Interfaces 3) Functional Interfaces and Lambda Expressions 4) Java Stream API for Bulk Data Operations on Collections 5) Java Time API 6) Collection API improvements 7) Concurrency API improvements 8) Java IO improvements Now we discuss step by step these features 1. forEach() method in Iterable interface Whenever we need to traverse through a Collection, we need to create an Iterator whose whole purpose is to iterate over, and then we have business logic in a loop for each of the elements in the Collection. We might get ConcurrentModificationException if the iterator is not used properly. Java 8 has introduced forEach method in java.lang.Iterable interface so that while writing code we focus on business logic. The forEach method takes java.util.function.Consumer object as an argument, so it helps in having our business logic at a separa...

Sample Test Scenario For Form, Filter, File Upload, Database Testing, Performance Testing, etc

###Importance of Using Checklist for Testing: – Maintaining a standard repository of reusable test cases for your application will ensure the most common bugs will be caught more quickly. – Checklist helps to quickly complete writing test cases for new versions of the application. – Reusing test cases help to save money on resources to write repetitive tests. – Important test cases will be covered always making it almost impossible to forget. – Testing checklist can be referred by developers to ensure most common issues are fixed in development phase itself. ###Few things to remember to before implement testing: 1) Execute these scenarios with different user roles e.g. admin user, guest user etc. 2) For web applications these scenarios should be tested on multiple browsers like IE, FF, Chrome, and Safari with versions approved by client. 3) Test with different screen resolutions like 1024 x 768, 1280 x 1024, etc. 4) Application should be tested on variety of displays like LCD, CRT, Not...

React Form Validation

Validation means to check that the data that is entered into the form is correct or not, react-js use bootstrap classes to implement validation practically. Step by Step React JS Validation Process Example1: import { useState } from "react" ; const isEmailValid = ( email ) => {     const emailPattern = / ^ [ a-zA-Z0-9._- ] + @ [ a-zA-Z0-9.- ] +\. [ a-zA-Z ] {2,10} $ / ;     return emailPattern . test ( email );   }; function Formvalidation () {     const [ inputValue , setInputValue ] = useState ( undefined );     const [ error , setError ] = useState ( undefined );     const [ email , setEmail ] = useState ( undefined );     const handleInputChange = ( e ) => {         const value = e . target . value ;       //  setInputValue(value);             // Validate if the input is not empty         if ( ! val...

Learn Programming Free By ShivaTutorials.

  Learn Programming and Interview Questions 2022, FREE, FREE, FREE By Shiva Tutorials #Codingclasses , https://youtu.be/RjzeBD4gVc8

Data Science Introduction

Data science is a way to try and discover hidden patterns in raw data. To achieve this goal, it makes use of several algorithms, machine learning(ML) principles, and scientific methods. The insights it retrieves from data lie in forms structured and unstructured. So in a way, this is like data mining. Data science encompasses all- data analysis, statistics, and machine learning. With more practices being labelled into data science. Text Analysis Statistical Analysis Diagnostic Analysis Predictive Analysis Prescriptive Analysis TEXT ANALYSIS:- Text Analysis is also referred to as Data Mining. It is a method to discover a pattern in large data sets using databases or data mining tools. It used to transform raw data into business information. Business Intelligence tools are present in the market which is used to take strategic business decisions. Overall it offers a way to extract and examine data and deriving patterns and finally interpretation of the data. Statistical Analysis It is use...

NumPy in DataScience

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, It is a predefined library of python which is used to perform a mathematical operation using predefined methods. NumPy uses array-type data to perform the operation. it contains array-type data to accept input data. Operation using NumPy:- Using NumPy, a developer can perform the following operations − ⦁    Mathematical and logical operations on arrays. ⦁    Fourier transforms and routines for shape manipulation. ⦁    Operations related to linear algebra. NumPy has in-built functions for linear algebra and random number generation. What is the Difference between NumPy Array and List? 1)  Numpy array has n-th dimensional means it can be one dimension to nth dimension but the list has only 1 or 2 dimension approach. 2) Numpy array is used to contain data of data science to implement multiple functionalities of scipy, NumPy, pandas, and matplotlib ...

SCIPY in Data Science

Scipy is the special library of python which is used to perform an advanced mathematical operation using the different predefined methods. It is the top layer of NumPy because NumPy is used to perform the basic mathematical operation , scipy mostly focus on l inear algebra and other a dvanced mathematical function . SCIPY was written as a SIGH PY word. How do we install scipy in the machine? if you want to install scipy with a core python or python shell then you can use the command python -m pip install scipy. pip install scipy Q)Create Script to write File in Matlab format and load it using scipy library? Matlab is a programming language that is a specialist in scientific programming. If we want to convert application data to Matlab format or Matlab format data to the application means we want to implement read and write operation then we can scipy library io module. 1) savemat():-  It is used to write application data to Matlab format 2) loadmat():-  It is used to read a...