前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Fortinet面试总结

Fortinet面试总结

原创
作者头像
CoffeeLand
修改2020-03-30 10:35:42
8110
修改2020-03-30 10:35:42
举报
文章被收录于专栏:CoffeeLand

fortinet面试总结


java基础

java里如何实现原子性操作

java通过锁和循环CAS来实现原子性才做

系统的jvm GC分析

  • gc算法有哪些
  • gc的划分

有序map

LinkedHashMap有序

HashMap的特性

  • hash算法
  • 底层原理

immutable 变量

string, final

final和static在内存里的存储

final 存在stack里

references:

https://stackoverflow.com/questions/29225745/where-is-the-local-final-variable-in-method-stored-stack-heap

代码语言:javascript
复制

But about final variable JVM take these as a constant as they will not change after initiated .
 And when a inner class try to access them compiler create a copy of that variable (not that variable it self) into the heap and create a synthetic field inside the inner class so even when the method execution is over it is accessible because the inner class has it own copy.

so does it finally means that final variables are stored in finally Stack memory Area?

final variable also stored in stack but the copy that variable which a inner class have stored in heap.     

如何设计一个restful api

要考虑的因素

  • api的职责
  • resource paramter的位置(path, body)
  • response
  • failure mode
  • sync 还是async
  • 幂等性

Method

幂等性(无论调用多少次API, 结果都是一样的)

get

满足

post

不满足

put

满足

DELETE

满足

分布式

分布式的事务

要保证最终一致性, 根据业务场景体现在强一致性和弱一致性

version号, 软删除, 文件记录然后回滚

云上微服务

公有云的意义, 节省运维成本, 但是可扩展差.

喜欢我的专栏, 请加关注和点赞!!!

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • java基础
    • java里如何实现原子性操作
      • 系统的jvm GC分析
        • 有序map
          • HashMap的特性
            • immutable 变量
              • final和static在内存里的存储
              • 如何设计一个restful api
              • 分布式
              • 云上微服务
              领券
              问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档