- Aug 2023
-
learning.oreilly.com learning.oreilly.com
-
Most of the time, people are not aware that there isn't only one, but four, garbage collectors. The four garbage collectors are—Serial, Parallel, Concurrent, and Garbage First (G1). We will see them in the following section. There are some third-party garbage collectors, such as Shenandoah. JVM HotSpot's default garbage collector is Parallel up to Java 8, while from Java 9, the default collector is Garbage First Garbage Collector (G1 GC). A Parallel garbage collector isn't best most of the time; however, it depends on our application requirements. For example, the Concurrent Mark Sweep (CMS) and G1 collectors cause less frequent GC pauses. But when they do cause a pause, the pause duration will most likely be longer than a pause caused by the Parallel collector. On the other hand, the Parallel collector usually achieves higher throughput for the same heap size.
garbage collection
-
- Jun 2023
-
discuss.logseq.com discuss.logseq.com
-
JAVA formatted code snippets for Logseq https://docs.logseq.com/#/page/advanced%20commands
-
- May 2023
-
library.scholarcy.com library.scholarcy.com
-
- Stop thinking island or coffee
Tags
Annotators
URL
-
- Apr 2023
-
codeberg.org codeberg.org
-
12
O código define três classes: CAx, CBy e Main. A classe CAx tem dois atributos int protegidos a e b, um construtor sem argumentos que inicializa esses atributos com valores padrão, e dois métodos int op1(int x) e int op2(int x) que retornam o valor de x adicionado aos atributos a e b, respectivamente. Além disso, CAx tem um método estático int op3(int x) que retorna o dobro do valor de x. A classe CBy herda CAx e redefine os atributos a e b no construtor, e redefine o método op2(int x). Finalmente, a classe Main cria um objeto CBy e chama o método op1(2) desse objeto, que retorna 14
-
resultado.setText("Sucesso!");
O método setText é utilizado para alterar o texto de um objeto TextView. Isso irá atualizar o texto do widget TextView chamado resultado para "Sucesso!".
-
class MemoriaCalculoVenda implements MemoriaCalculo
Esse código define uma classe chamada MemoriaCalculoVenda que implementa a interface MemoriaCalculo. A palavra-chave implements é usada para indicar que a classe está implementando uma interface, o que significa que ela deve definir todos os métodos abstratos (sem implementação) declarados na interface.
-
- Mar 2023
-
developer.android.com developer.android.com
- Dec 2022
-
-
The leading web, mobile, and desktop application solutions are provided by 10decoders, a reputable Java development company. We develop dynamic Java applications for both client-side and web-based needs. We have received praise for our dependable and scalable backend solutions for businesses all over the world.
-
As a company that creates Java applications, 10decoders collaborates with you to create a complete enterprise software suite that includes mobile and web applications. 10decoders Java development services range from simple MVPs for startups to sophisticated business solutions.
-
-
www.zhihu.com www.zhihu.com
-
java中如何让一个方法不能被反射调用?
Tags
Annotators
URL
-
-
-
Java8 stream 中利用 groupingBy 进行多字段分组求和
-
-
-
Spring Boot 处理 Long 类型的 json 数据,前端调用精度丢失,变成 00
-
-
-
ObjectMapper @JsonProperty 不生效问题处理(kotlin)
-
-
heapdump.cn heapdump.cn
-
mp.weixin.qq.com mp.weixin.qq.com
-
剖析 SPI 在 Spring 中的应用
Tags
Annotators
URL
-
-
-
JDK中Lambda表达式的序列化与SerializedLambda的巧妙使用
Tags
Annotators
URL
-
-
blog.csdn.net blog.csdn.net
-
RabbitTemplate的 发布确认 和 事务
Tags
Annotators
URL
-
-
www.jianshu.com www.jianshu.com
-
【RabbitMQ-9】自定义配置线程池(线程池资源不足-MQ初始化队列&&MQ动态扩容影响)
Tags
Annotators
URL
-
-
blog.csdn.net blog.csdn.net
-
JDK8线程池-ThreadPoolExecutor动态调整corePoolSize与maximumPoolSize
Tags
Annotators
URL
-
-
www.jianshu.com www.jianshu.com
-
Comparison method violates its general contract!
Tags
Annotators
URL
-
-
blog.csdn.net blog.csdn.net
-
fastJson解析空指针异常与防范
Tags
Annotators
URL
-
-
blog.nowcoder.net blog.nowcoder.net
-
queryDSL复杂查询的分页和自定义排序实现
Tags
Annotators
URL
-
-
blog.csdn.net blog.csdn.net
-
全网最全!彻底弄透Java处理GMT/UTC日期时间
Tags
Annotators
URL
-
-
blog.csdn.net blog.csdn.net
-
如何jedis和spring-data-redis导包版本不兼容问题
-
-
blog.csdn.net blog.csdn.net
-
Jpa 自动更新表中的创建日期和修改时间
Tags
Annotators
URL
-
-
-
Maven项目在pom文件中引入lib下的第三方jar包并打包进去
-
-
www.jianshu.com www.jianshu.com
-
Querydsl无法生成实体对应的查询Q类记录
Tags
Annotators
URL
-
-
www.yasinshaw.com www.yasinshaw.com
-
Spring Data JPA进阶(六):事务和锁
Tags
Annotators
URL
-
-
mp.weixin.qq.com mp.weixin.qq.com
-
Java对象转换方案分析与mapstruct实践
Tags
Annotators
URL
-
-
mp.weixin.qq.com mp.weixin.qq.com
-
我理解的分布式系统
Tags
Annotators
URL
-
-
mp.weixin.qq.com mp.weixin.qq.com
-
策略模式-优雅的改造短信业务模块
Tags
Annotators
URL
-
-
mp.weixin.qq.com mp.weixin.qq.com
-
切记,这样打日志定位 Bug 又快又准!
Tags
Annotators
URL
-
-
mp.weixin.qq.com mp.weixin.qq.com
-
当枚举遇到位掩码,还能这么玩?
Tags
Annotators
URL
-
-
mp.weixin.qq.com mp.weixin.qq.com
-
SpringBoot 配置文件敏感信息加密
Tags
Annotators
URL
-
-
mp.weixin.qq.com mp.weixin.qq.com
-
Jackson 通过自定义注解来控制 json key 的格式
Tags
Annotators
URL
-
-
mp.weixin.qq.com mp.weixin.qq.com
-
别乱用,这样打日志定位 Bug 又快又准!
Tags
Annotators
URL
-
-
mp.weixin.qq.com mp.weixin.qq.com
-
mp.weixin.qq.com mp.weixin.qq.com
-
我终于决定要放弃 okhttp、httpClient,选择了这个牛逼的神仙工具!贼爽
Tags
Annotators
URL
-
-
zhuanlan.zhihu.com zhuanlan.zhihu.com
-
SpringBoot项目,如何优雅的把接口参数中的空白值替换为null值?
Tags
Annotators
URL
-
-
blog.csdn.net blog.csdn.net
-
Jackson修改字段名和自定义命名策略
Tags
Annotators
URL
-
-
blog.csdn.net blog.csdn.net
-
Jackson整合及最佳实践
-
-
developer.aliyun.com developer.aliyun.com
-
Aviator——轻量级Java表达式求值引擎
Tags
Annotators
URL
-
-
blog.csdn.net blog.csdn.net
-
JAVA中3种将byte转换为String的方法
Tags
Annotators
URL
-
-
-
Hibernate在控制台打印sql语句以及参数
Tags
Annotators
URL
-
-
-
form-data方式提交对象数组,java后台解析为对象集合
Tags
Annotators
URL
-
-
www.baeldung.com www.baeldung.com
-
Using Spring Cloud Config Without Git
-
-
www.zhihu.com www.zhihu.com
-
如何看待 Java 等高级语言 AOT 静态编译的趋势?脚本语言中为何没有出现该趋势?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
如何看待国内后台开发从Java转向Go的趋势?
Tags
Annotators
URL
-
-
-
带有 GC 的语言都提到了 Safepoint,能否以简单的话语说明 Safepoint 的具体含义?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么 Java 和 JS 等语言需要 VM,不能直接操作内存堆栈空间?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
jvm字节码指令地址是怎么形成的?
-
-
www.zhihu.com www.zhihu.com
-
怎样支持递归定义/初始化变量(相较于几乎所有现代语言都支持函数定义递归)?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Java中提高密码的安全性(禁止直接使用String),Spring Boot中有哪些现实的方案?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么JAVA,wait()要放在while循环里?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Java heap size为什么不建议设置大于32G?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
既然引用计数在做 GC 时有性能问题,为什么智能指针会广泛应用它?
-
-
www.zhihu.com www.zhihu.com
-
要想实现编程语言,LLVM 和 JVM 哪个更方便?
-
-
www.zhihu.com www.zhihu.com
-
Java的库为什么写的很抽象、很难懂,库的开发有一般准则吗?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
老程序员解 bug 有哪些通用套路?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
写后端代码,要考虑用户不走前端进行操作,而直接调用接口的情况吗,要额外加判断吗?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么java要使用IOC对编译期进行解耦?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么 Java 中的 String 被称为 Immutable ?
-
-
www.zhihu.com www.zhihu.com
-
Gradle 比 Maven 好为什么用的人少?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
volatile为什么不能保证原子性?
Tags
Annotators
URL
-
-
-
使用java的ReentrantReadWriteLock读写锁时,锁降级是必须的么?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么说ReentrantLock是悲观锁呢?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么这段代码中ReentrantReadWriteLock降级时,释放读锁不放在finally中?
-
-
www.zhihu.com www.zhihu.com
-
数据库MVCC和隔离级别的关系是什么?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
乐观锁和 MVCC 的区别?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
在开发中使用Kotlin有什么奇巧淫技?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Kotlin 语言培训市场规模有多大?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
www.zhihu.com www.zhihu.com
-
SpringBoot的约定大于配置使得我们开发项目少写了很多配置,但那些默认配置我得去哪里才能看到?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
如何根据sql语句逆向生成回滚语句?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
jwt与token+redis,哪种方案更好用?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
JAVA后端新人刚进入小公司一般会安排做什么?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
www.zhihu.com www.zhihu.com
-
如何画架构图?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
高并发下怎么做余额扣减?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
大公司有实现自己的java虚拟机吗?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么部分外行人看起来不太复杂的网站,比如Facebook,需要大量顶尖高手来开发?
Tags
Annotators
URL
-
-
-
Spring Boot 项目使用 Apache Shiro 还是 Spring Security 好?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Spring Boot 是否很难用?为什么?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
怎么阅读Spring源码?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
如何用最简单的方式解释依赖注入?依赖注入是如何实现解耦的?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
spring boot和SSM开发中有什么区别?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么做 Java 开发的公司需要那么多程序员?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么现在java几乎所有的工具/类库,都在尝试往graal上搬?用graal做aot?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么Go的web框架速度还不如Java?
Tags
Annotators
URL
-
-
-
为什么要把前端搞的这么复杂,UI 组件不是很好用吗, 难道就是为了推广 nodejs 和 npm 吗?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
springjpa和mybatis哪个查询效率高?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
前端开发的难点到底在什么地方?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
nacos 一个服务中如何注册多个端口?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
目前 Java 后端有哪些不是很有必要去学的?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Java 后端是否 low ?
-
-
www.zhihu.com www.zhihu.com
-
Java8在Docker里性能不好是真的吗?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
要达到什么样的规模才适合分布式/微服务架构?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
www.zhihu.com www.zhihu.com
-
开发一个大型后台管理系统,前端选择 Vue 还是 React?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Kubernetes 可以完全替代 Spring Cloud 吗?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么游戏公司的server不愿意微服务化?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
如何学习JHipster框架?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
java多张图片合并如何实现?
-
-
www.zhihu.com www.zhihu.com
-
关于电商网站数据库的设计?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
怎样防止重复发送 Ajax 请求?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
自学编程的人,都是怎么找到第一份软件开发工作的?
-
-
www.zhihu.com www.zhihu.com
-
Java中“装饰模式”和“代理模式”有啥区别?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
java nio使用的是水平触发还是边缘触发?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
自学编程四个月了,感觉都会了,又感觉什么都不会。这种状态下我下一步该怎么做?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
程序员如何快速上手一个自己不太熟悉的新项目?有什么技巧?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Java写一套漂亮的代码,哪些设计模式比较常用?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
如何学习 Spring ?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
怎么理解ServletContext,在Servlet访问过程中什么作用?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
Java bean 是个什么概念?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
为什么 IO 多路复用要搭配非阻塞 IO?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
I/O多路复用技术(multiplexing)是什么?
-
-
www.zhihu.com www.zhihu.com
-
jdk9为何要将String的底层实现由char[]改成了byte[]?
Tags
Annotators
URL
-
-
www.zhihu.com www.zhihu.com
-
如何深刻理解Reactor和Proactor?
-