最后
面试题文档来啦,内容很多,485页!
由于笔记的内容太多,没办法全部展示出来,下面只截取部分内容展示。
1111道Java工程师必问面试题
MyBatis 27题 + ZooKeeper 25题 + Dubbo 30题:
Elasticsearch 24 题 +Memcached + Redis 40题:
Spring 26 题+ 微服务 27题+ Linux 45题:
Java面试题合集:
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter a value in pounds:”);
double pounds = input.nextDouble();
double kilograms = pounds*0.454;
System.out.println(pounds+" pounds is “+kilograms+” kilograms.");
}
}
================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter the subtotal and a gratuity rate:”);
double t = input.nextDouble();
double g = input.nextDouble();
double extra = t*g/100.0;
double s = extra+t;
System.out.println(“The gratuity is $”+extra+" and total is $“+s+”.");
}
}
================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter a number between 0 and 1000:”);
int num = input.nextInt();
int d1 = num%10;
num/=10;
int d2 = num%10;
num/=10;
int s = num+d1+d2;
System.out.println(“The sum of the digits is “+s+”.”);
}
}
================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter the number of minutes:”);
int min = input.nextInt();
int days = min/60/24;
int years = days/365;
days %= 365;
System.out.println(min+" minutes is approximately “+years+” years and “+days+” days.");
}
}
================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter the time zone offset to GMT:”);
long offset = input.nextLong();
long totalMilliseconds = System.currentTimeMillis();
totalMilliseconds+=offset6060*1000;
long totalSeconds = totalMilliseconds/1000;
long currentSecond = totalSeconds%60;
long totalMinutes = totalSeconds/60;
long currentMinute = totalMinutes%60;
long totalHours = totalMinutes/60;
long currentHour = totalHours%24;
System.out.println(“Current time is “+currentHour+”:”+currentMinute+“:”+currentSecond+" GMT.");
}
}
================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter v0, v1, and t:”);
double v0 = input.nextDouble();
double v1 = input.nextDouble();
double t = input.nextDouble();
double a = (v1-v0)/t;
System.out.println(“The average acceleration is “+a+”.”);
}
}
=================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter the amount of water in kilograms:”);
double m = input.nextDouble();
System.out.print(“Enter the initial temperature:”);
double it = input.nextDouble();
System.out.print(“Enter the final temperature:”);
double ft = input.nextDouble();
double q = m*(ft-it)*4184;
System.out.println(“The energy needed is “+q+”.”);
}
}
=================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter the number of years:”);
int year = input.nextInt();
double base = 312032486;
int secnum = 365243600;
for(int i=1;i<=year;i++)
base=base+secnum/7.0-secnum/13.0+secnum/45.0;
System.out.println(“The population in “+year+” years is “+base+”.”);
}
}
=================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter speed and acceleration:”);
double v = input.nextDouble();
double a = input.nextDouble();
double l = vv/(2a);
System.out.println(“The minimum runway length for this airplane is “+l+”.”);
}
}
=================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter the monthly saving amount:”);
double m = input.nextDouble();
double sum = 0.0;
for(int i=0;i<6;i++)
sum = (m+sum)*(1+0.00417);
System.out.println(“After the sixth month, the account value is $”+sum+“.”);
}
}
=================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter weight in pounds:”);
double pounds = input.nextDouble();
System.out.print(“Enter height in inches:”);
double inches = input.nextDouble();
double bmi = pounds0.4535927/(inchesinches0.02540.0254);
System.out.println(“BMI is “+bmi+”.”);
}
}
=================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter x1 and y1:”);
double x1 = input.nextDouble();
double y1 = input.nextDouble();
System.out.print(“Enter x2 and y2:”);
double x2 = input.nextDouble();
double y2 = input.nextDouble();
double d = Math.pow((x2-x1)(x2-x1)+(y2-y1)(y2-y1),0.5);
System.out.println(“The distance between the two points is “+d+”.”);
}
}
=================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter the length of the side:”);
double s = input.nextDouble();
double a = 3Math.pow(3,0.5)/2s*s;
System.out.println(“The area of the hexagon is “+a+”.”);
}
}
=================================================================
import java.util.Scanner;
public class dierzhang {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter the temperature in Fahrenheit:”);
double ta = input.nextDouble();
System.out.print(“Enter the wind speed (>=2) in miles per hour:”);
double v = input.nextDouble();
double twc = 35.74+0.6215ta-35.75Math.pow(v,0.16)+0.4275taMath.pow(v,0.16);
System.out.println("The wind chill is "+twc);
}
}
=================================================================
public class dierzhang {
public static void main(String[] args){
System.out.println(“a b pow(a,b)”);
总结
谈到面试,其实说白了就是刷题刷题刷题,天天作死的刷。。。。。
为了准备这个“金三银四”的春招,狂刷一个月的题,狂补超多的漏洞知识,像这次美团面试问的算法、数据库、Redis、设计模式等这些题目都是我刷到过的
并且我也将自己刷的题全部整理成了PDF或者Word文档(含详细答案解析)
66个Java面试知识点
架构专题(MySQL,Java,Redis,线程,并发,设计模式,Nginx,Linux,框架,微服务等)+大厂面试题详解(百度,阿里,腾讯,华为,迅雷,网易,中兴,北京中软等)
算法刷题(PDF)
pow(a,b)");
总结
谈到面试,其实说白了就是刷题刷题刷题,天天作死的刷。。。。。
为了准备这个“金三银四”的春招,狂刷一个月的题,狂补超多的漏洞知识,像这次美团面试问的算法、数据库、Redis、设计模式等这些题目都是我刷到过的
并且我也将自己刷的题全部整理成了PDF或者Word文档(含详细答案解析)
[外链图片转存中…(img-beLkxICE-1715572408560)]
66个Java面试知识点
架构专题(MySQL,Java,Redis,线程,并发,设计模式,Nginx,Linux,框架,微服务等)+大厂面试题详解(百度,阿里,腾讯,华为,迅雷,网易,中兴,北京中软等)
[外链图片转存中…(img-6nRC0DY1-1715572408560)]
算法刷题(PDF)
[外链图片转存中…(img-ps6nKk1Q-1715572408561)]