TIJ swot_JAVA的初学者(六)

博客主要介绍Java相关知识,包括异常处理,指出异常是从错误处抛出的对象,处理异常是不同的并行执行路径,且不可忽视;还提及多线程,Java将线程融入语言,用synchronized关键字解决资源共享问题,此外还涉及持久化和Java与互联网的客户端/服务器计算。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.8 Exception handling: dealing with errors

An exception is an object thrown from the site of the error.

Exception handling is like a different, parallel path of execution.

Exception canot be ignored.

Excetion provide a way to reliably recover from a bad situation.

1.9 Multithreading

Here is an interesing part.

Java builds threads into language, then without hardware suspension, the program is logically divided into threads.

And to solve the problem of share recources, Java enables a thread to lock a resource.This is accomplished using the synchronized keyword.

1.10 Persistence

1.11 Java and the Internet

client/server computing

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值