USB port exceptions and C ++ & JAVA

Source: Internet
Author: User

My friend's USB port has a strange problem: if you plug in a USB peripheral to start up, the USB port will not respond after the boot. For example, if you plug in a USB keyboard to start up, the keyboard cannot be used after it is started.
My computer has a similar and more interesting phenomenon: with USB peripherals turned on, the computer cannot be started! Or plug in USB peripherals during the boot process, then the machine immediately stops, just like pressing the pause key!

No matter what the cause is, it reminds me of the C ++ and Java Error Reporting principles.
C ++ tends to put errors in the cradle and try to prompt errors during compilation so that they will not be moved into the runtime.
Java is "exception crazy". If an error occurs, the most likely result is that you will receive a bunch of exceptions during the runtime! Compile again after completion and restartProgramAnd the startup of Java programs is like the old lady, the slow is heartbreaking :-(

My computer is like a C ++. If there are peripherals (errors) on the USB port, you will not be able to boot it.
A friend's machine is quietly letting the machine continue to run until the USB peripherals are used.-exception! -- Oh, you have to restart it!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.