Java英文面试问答(三)

6. Define JDK, JRE, and JVM?
JDK: It is an abbreviation for Java Development Kit used for compiling, documenting, and packaging Java programs. It includes JRE and development tools.
JRE: Java Runtime Environment or JRE is a runtime environment for Java bytecode execution. It is for making JVM active and effective.
JVM: It is Java Virtual Machine, which is an abstract machine. It sends instructions to the computer's processor to execute for the execution of Java bytecode.

7. What makes Java platform-independent?
Because of its features to run bytecodes on any system, regardless of which platform they are written on.

8. Is Java 100% object-oriented. If not, than why?
No. Java is not 100% object-oriented since it used eight primitive data types. Which are: boolean char, byte, float, int. double, short, and long. And all these are not objects.

9. What are Constructors in Java?
They are a block of codes meant for initializing an object. However, their name should be identical to that of the class. Moreover, when an object is created, it automatically gets called because of not having any return type.

10. What are the types of Constructors?
The constructors are of two types:
1.Default Constructor: This constructor is so named because it is created by default, which means without any inputs from the user. It is also called no argument constructor since it doesn't take any inputs. It takes the default values of the instance variables and is used for creating an object.
2.Parameterized Constructor: It is the constructor that has the quality to initialize the instance variables as per the provided values. It is so called because it takes the arguments.
Java is vast which is why there is no way to guess how many questions would be asked in the interview. It totally depends on the interviewer and the time he or she has to interview you.
#面经##校招##秋招##Java面试##互联网面试#
全部评论
我要是碰到这种,就彻底的没戏了
点赞 回复 分享
发布于 2022-10-08 18:44 山西

相关推荐

360服务端 面经360服务器开发—golang为主  一面  7.5  全程45min1.自我介绍 2.上段实习(ps:上段实习也是网安行业的,问的比较细)3.golang并发优势4.gmp和gc(ps:回答较为全面)😬😬😬gmp从单进程讲到多进程/多线程,gmp的设计原理和优势,为什么等等gc从算法到gc阶段到写屏障等等5.服务器优化方案ps:当时简单回答了看CPU使用率,看MySQL慢查询日志,用普罗米修斯去监控数据库6.接口性能优化ps:好多方案,大概举例了11种,等我整理链接放在评论区7.es为什么那么快(es问的比较深,好久没看了)答:倒排索引,然后举例讲了一下怎么倒排的,内存数据库,举例高度分页会导致查询速度变低,json数据格式,数据存储小,不确定对不对8.高必发场景下数据如何平滑写入es9.MySQL索引等10.redis数据结构和场景11.redis,hll用过吗答:用过,是一种概率基数统计算法,统计网站PV和UV,同一个ip下注册用户数量等。360集团2025届校招内推【内推码】ES3C3K安全、算法、开发、大数据、运营、职能等十类方向,百余种岗位! 北京 /上海/深圳等多座城市任米哈游你选择早投早offer!【内推码】ES3C3K【内推码】ES3C3K【内推码】ES3C3K【内推网申链接】https://360campus.zhiye.com/campus/jobs?shareId=92cfb7e8-2ae3-49dc-b960-cf7ce3c1a6c7&shareSource=2投递后查询阶段状态:https://neitui.italent.cn/360campus/candidate【福利待遇】 部门团建:每月可享受 150 元 /人的团队活动基金 免费班车 带薪病假: 每月可享受一天带薪病假,当月有效不累计 带薪年假:新入职员工即有每年10天的年假 餐费补贴: 每天可享有35元餐费补贴或者在食堂就餐(不分休息日和节假日均可就餐哦) 六险一金: 公积金12%顶格缴纳,补充商业保险 免费健身: 有免费的健身房和浴室 免费按摩: 有免费的按摩室,按摩师傅给你按摩、艾灸、电疗、拔罐 年度体检: 每年一次免费参加身体健康体检 大家投递完可以在评论区打上姓名缩写+岗位,我来确认有没有内推成功喽
360集团
|
校招
|
26个岗位
点赞 评论 收藏
分享
1 4 评论
分享
牛客网
牛客企业服务