Posts

Showing posts from January, 2022

WEB SCRAPING

 WEB SCRAPING Web scraping is Data Scraping used for extracting data from websites. It is also known as Web harvesting, Web data Extraction. It is basically copying where specific data is gathered and copied from the web, to a database or a spreadsheet for Data Analysis. Web scraping a web page involves fetching it and extracting from it. Fetching is the downloading of a page (which a browser does when a user views a page). Therefore, web crawling is a main component of web scraping, to fetch pages for later processing. Once fetched, then extraction can take place.The content of a page may be parsed, searched, reformatted, its data copied into a spreadsheet or loaded into a database. Web scrapers typically take something out of a page, to make use of it for another purpose somewhere else. An example would be to find and copy names and telephone numbers, or companies and their URLs, or e-mail addresses to a list (contact scraping). Click here to go through the example of Web Sc

EXCEPTION HANDLING IN JAVA

Image
Exception Handling (JAVA)  An exception is an abnormal condition that arises at run-time. So, we can consider it as a run-time error. Java's exception handling helps in bringing run-time error management into the real world of object oriented programming. Basics of Exception Handling A Java exception is an object that describes the error condition. When an exceptional condition arises, then the object representing the exception is created and thrown in the method that caused the error. That method can either choose to handle the exception by itself or pass it. In anyway, the exception is caught and processed. Exceptions are either generated by JAVA Run-time system or manually by the code.  Five keywords in Java's Exception Handling try catch throw throws finally    General form of exception handling:   try{     //Your code goes here } catch(ExceptionType1){     //exception handler for exception type 1 } catch(ExceptionType2){     //exception handler for exception type 2 } //