
面试
舒碧虎
注重细节,完善自己。
个人公众号,lshubihu,也可以搜索舒碧虎。
展开
-
JDK和JRE以及JVM有什么区别和联系?
1. 一张图2. 分析首先我们要知道JDK和JRE以及JVM分别代表什么意思。根据第一个图,我们明显可以知道三者范围上的关系:JDK>JRE>JVM。三者之间有一个包含关系。在我们学习Java的过程中,有很多图需要我们牢记,熟练的使用图形化的方式更便于我们理解知识点,如线程的状态变换图和接口和集合的继承关系图等。3. 链接知识点为什么JDK的安装路径下存在两个JR...原创 2020-05-07 18:17:19 · 694 阅读 · 0 评论 -
怎样制作鼠标点击就可以执行的Jar文件?
1. 核心要点首先,一个Java类对应一个class文件,class文件过多时在发布部署前会将class文件压缩;而使用jar.exe可以将多个文件压缩成一个压缩文件,在压缩前进行简单配置制定主程序入口即可做到点击即可执行。整个操作没有借助于IDE。2. 操作2.1 编写Java程序package com.lu;import javax.swing.*; class A{} cl...原创 2020-05-07 11:16:10 · 370 阅读 · 0 评论 -
SQL之常见面试题--001
一、教师号 星期号 是否有课 1 2 有 1 3 有 2 1 有 3 2 有` 1 2 有写一条sql语句让你变为这样的表教师号 星期一 星期二 星期三 1 2 1 2 1 3 1各星期下的数字表示:对应的教师在星期几已经排的课数。解答如下:SELECT d.teacherId as id,count(ca...原创 2018-06-07 21:12:42 · 582 阅读 · 0 评论 -
Java面试知识点总结
1.Git和SVN的区别 git是分布式的,SVN不是;git把数据按元数据方式存储,而SVN是按文件;git分支和SVN分支不同;git没有一个全局的版本号,而SVN有;git的内容完整性要优于SVN。2.http与HTTPS的区别 HTTPS采用的是SSL加密,信息传输更加安全; 端口号不一样,HTTP的端口是80,后者是443。 HTTP的连接是无状态的,而HTTPS是SSL+HTT...原创 2018-06-13 18:30:14 · 226 阅读 · 0 评论 -
一个很有意思的SQL面试题
之前面试的时候碰到一个很有意思的SQL题,不难但是很有新意,在这里贴出来。 表a的数据如下: 查询后的表: ...原创 2018-05-15 18:20:50 · 565 阅读 · 0 评论 -
面试题07:Count the smiley faces!
Description : Given an array (arr) as an argument complete the function countSmileys that should return the total number of smiling faces.Rules for a smiling face: -Each smiley face must contain a val原创 2017-09-21 19:35:23 · 597 阅读 · 0 评论 -
面试题06:一串英文数字转换成阿拉伯数字
已知:zero,one,two,three,four,five,six,seven,eight,nine分别对应0,1,2,3,4,5,6,7,8,9,对每一段含有这几种字符串的字符串进行转换,如: 输入:nineeightsevensixfivefourthreetwoonezero 输出:9876543210 数字的先后顺序不考虑。 代码:public static String eng原创 2017-09-21 16:02:24 · 6584 阅读 · 1 评论 -
面试题02:Delete occurrences of an element if it occurs more than n times
题目描述: Alice and Bob were on a holiday. Both of them took many pictures of the places they’ve been, and now they want to show Charlie their entire collection. However, Charlie doesn’t like this sessi原创 2017-09-11 23:19:37 · 531 阅读 · 0 评论 -
面试题03:Sum of odd numbers
Given the triangle of consecutive odd numbers: 1 3 5 7 9 11 13 15 17 1921 23 25 27 29...*Calculate the row sums of this triangle from th原创 2017-09-11 23:34:07 · 814 阅读 · 0 评论 -
面试题--01
之前在面试的时候碰到的小题目,不难,但是对于这道题的解法还是有很多意思的。求字符串中出现的第一个不重复的字符 如acdefcad 返回 e 。解法一:先将字符串变成字符数组,利用HashMap存储字符,key为字符,value为字符的个数。最后从头开始循环字符数组并与HashMap对比得到结果。 String str = "fjSfjldsjfdlsJFLjfdjfkldsJFFFFFFFFJ原创 2017-09-01 19:36:59 · 206 阅读 · 0 评论 -
面试题05:Jaden Casing Strings
Jaden Smith, the son of Will Smith, is the star of films such as The Karate Kid (2010) and After Earth (2013). Jaden is also known for some of his philosophy that he delivers via Twitter. When writing原创 2017-09-18 16:12:58 · 795 阅读 · 0 评论 -
面试题04:Mind the Gap
Background: *If you visit London and travel on the Tube, you might hear the announcer say, “Mind the gap!” Usually this is to do with the gap between the train and the platform. Recently, another typ原创 2017-09-18 16:07:00 · 894 阅读 · 0 评论 -
面试题10:Vasya - Clerk
The new “Avengers” movie has just been released! There are a lot of people at the cinema box office standing in a huge line. Each of them has a single 100, 50 or 25 dollars bill. A “Avengers” ticket co原创 2017-09-26 08:56:39 · 453 阅读 · 0 评论 -
面试题09:Calculate mean and concatenate string
You will be given an array which will include both integers and characters. Return an array of length 2 with a[0] representing the mean of the ten integers as a floating point number. There will alway原创 2017-09-23 19:14:51 · 274 阅读 · 0 评论 -
面试题08:Calculate BMI
Write function bmi that calculates body mass index (bmi = weight / height ^ 2). if bmi <= 18.5 return “Underweight” if bmi <= 25.0 return “Normal” if bmi <= 30.0 return “Overweight” if bmi > 30 ret原创 2017-09-23 19:09:30 · 463 阅读 · 0 评论