用友JAVA笔试真题
【导语】“YU5570”通过精心收集,向本站投稿了7篇用友JAVA笔试真题,以下是小编收集整理后的用友JAVA笔试真题,仅供参考,欢迎大家阅读。
- 目录
篇1:用友JAVA笔试真题
,
1)抽象类可以是final、private吗?
2)异常能出来的情况有什么?
3)finally块的运用,就是出一道程序,然后让你写出输出的结果来,在finally块中的println(“”)不管如何总是要输出出来的。
4)jsp中的`doget和dopost()方法的作用?
5)oracle中数据表的交集怎么表示?
6)jsp页面中如何传递参数或是有哪些方法?
7)数据库中的锁包括什么?
8)jsp和serverlet的区别或者是他们的关系?
篇2:思迁数码科技Java笔试真题
思迁数码科技Java笔试真题
选择题
1:Which statements about Java code security are not true?
A.The bytecode verifier loads all classes needed for the execution of a program.
B.Executing code is performed by the runtime interpreter.
C.At runtime the bytecodes are loaded, checked and run in an interpreter.
D.The class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.
2:What is the result when you compile and run the following code?
public class Test
{
public void method()
{
for(int i = 0; i < 3; i++)
{
System.out.print(i);
}
System.out.print(i);
}
}
Choices:
What is the result when you compile and run the following code?
public class Test
{
public void method()
{
for(int i = 0; i < 3; i++)
{
System.out.print(i);
}
System.out.print(i);
}
}
Choices:
A.0122
B.0123
C.Compilation error
D.None of these
3:
Give the following code:
public class Example{
public static void main(String args[] ){
int l=0;
do{
System.out.println(“Doing it for l is:”+l);
}while(--l>0)
System.out.println(“Finish”);
}
}
Which well be output:
Give the following code:
public class Example{
public static void main(String args[] ){
int l=0;
do{
System.out.println(“Doing it for l is:”+l);
}while(--l>0)
System.out.println(“Finish”);
}
}
Which well be output:
A.Doing it for l is 3
B.Doing it for l is 1
C.Doing it for l is 2
D.Doing it for l is 0
4:Math.round(11.5)等於多少?
A.11
B.12
C.11.5
D.none
5:
What will happen when you attempt to compile and run the following code?
int Output = 10;
boolean b1 = false;
if((b1 == true) && ((Output += 10) == 20))
{
System.out.println(“We are equal ” + Output);
}
else
{
System.out.println(“Not equal! ” + Output);
}
Choices:
What will happen when you attempt to compile and run the following code?
int Output = 10;
boolean b1 = false;
if((b1 == true) && ((Output += 10) == 20))
{
System.out.println(“We are equal ” + Output);
}
else
{
System.out.println(“Not equal! ” + Output);
}
Choices:
A.Compilation error, attempting to perform binary comparison on logical data type
B.Compilation and output of “We are equal 10”.
C.Compilation and output of “Not equal! 20”.
D.Compilation and output of “Not equal! 10”.
6:
What will happen when you attempt to compile and run the following code?
(Assume that the code is compiled and run with assertions enabled.)
public class AssertTest{
public void methodA(int i){
assert i >= 0 : methodB();
System.out.println(i);
}
public void methodB(){
System.out.println(“The value must not be negative”);
}
public static void main(String args[]){
AssertTest test = new AssertTest();
test.methodA(-10);
}
}
What will happen when you attempt to compile and run the following code?
(Assume that the code is compiled and run with assertions enabled.)
public class AssertTest{
public void methodA(int i){
assert i >= 0 : methodB();
System.out.println(i);
}
public void methodB(){
System.out.println(“The value must not be negative”);
}
public static void main(String args[]){
AssertTest test = new AssertTest();
test.methodA(-10);
}
}
A.it will print -10
B.it will result in AssertionError showing the message-“the value must not be negative”.
篇3:计算机二级Java笔试真题精选
一、选择题((1)~(35)每小题2分,共70分)
下列各题A)、B)、C)、D)四个选项中,只有一个选项是正确的,请将正确选项写在答题卡相应位置上,答在试卷上不得分。
(1)下列选项中不属于结构化程序设计方法的是
A)自顶向下
B)逐步求精
C)模块化
D)可复用
(2)两个或两个以上模块之间关联的紧密程度称为
A)耦合度
B)内聚度
C)复杂度
D)数据传输特性
(3)下列叙述中正确的是
A)软件测试应该由程序开发者来完成
B)程序经调试后一般不需要再测试
C)软件维护只包括对程序代码的维护
D)以上三种说法都不对
(4)按照“后进先出”原则组织数据的数据结构是
A)队列
B)栈
C)双向链表
D)二叉树
(5)下列叙述中正确的是
A)线性链表是线性表的链式存储结构
B)栈与队列是非线性结构
C)双向链表是非线性结构
D)只有根结点的二叉树是线性结构
(6)对如下二叉树
进行后序遍历的结果为
A)ABCDEF
B)DBEAFC
C)ABDECF
D)DEBFCA
(7)在深度为7的满二叉树中,叶子结点的个数为
A)32 B)31 C)64 D)63
(8)“商品”与“顾客”两个实体集之间的联系一般是
A)一对一
B)一对多
C)多对一
D)多对多
(9)在E―R图中,用来表示实体的图形是
A)矩形
B)椭圆形
C)菱形
D)三角形
(10)数据库DB、数据库系统DBS、数据库管理系统DBMS之间的关系是
A)DB包含DBS和DBMS
B)DBMS包含DB和DBS
C)DBS包含DB和DBMS
D)没有任何关系
(11)Java语言中,负责并发管理的机制是
A)垃圾回收
B)虚拟机
C)代码安全
D)多线程
(12)下列描述中,错误的是
A)Java要求编程者管理内存
B)Java的安全性体现在多个层次上
C)Applet要求在支持Java的浏览器上运行
D)Java有多线程机制
(13)Java为移动设备提供的平台是
A)J2ME B)J2SE C)J2EE D)JDK5.0
(14)JDK中提供的文档生成器是
A)java.exe B)javap.exe C)javadoc.exe D)javaprof.exe
(15)在Java语言中,不允许使用指针体现出的Java特性是
A)可移植 B)解释执行 C)健壮性 D)安全性
(16)下列不属于Swing中构件的是
A)JPanel B)JTable C)Menu D)JFrame
(17)下列方法中,不属于WindowListener接口的是
A)windowOpened
B)windowClosed()
C)windowActivated()
D)mouseDragged()
(18)下列语句中,属于多分支语句的是
A)if语句 B)switch语句 C)do while语句 D)for语句
(19)阅读下列代码
public class Test2005{
public static void main(String args[]){
String s=″Test″;
Switch(s){
case″Java″:System.out.print(″Java″);
break;
case″Language″:System.out.print(″Language″);
break;
case″Test″:System.out.print(″Test″);
break;
}
}
}
其运行结果是
A)Java B)Language C)Test D)编译出错
(20)阅读下列代码
public class Test2005{
public static void main(String args[]){
System.out.println(~(0xa5)&0xaa);
}
}
其运行结果是
A)0xa5 B)10 C)0x50 D)0xaa
(21)阅读下列代码
public class Test2005{
public static void main(String args[]){
System.out.println((3>2)?4:5);
}
}
其运行结果是
A)2 B)3 C)4 D)5
(22)阅读下列代码
public class Test{
public static void main(String args[]){
System.out.println(89>>1);
}
}
其运行结果是
A)44 B)45 C)88 D)90
(23)在Applet中显示文字、图形等信息时,应使用的方法是
A)paint() B)init() C)start() D)destroy()
(24)线程生命周期中正确的状态是
A)新建状态、运行状态和终止状态
B)新建状态、运行状态、阻塞状态和终止状态
C)新建状态、可运行状态、运行状态、阻塞状态和终止状态
D)新建状态、可运行状态、运行状态、恢复状态和终止状态
(25)Thread类中能运行线程体的方法是
A)start() B)resume() C)init() D)run()
(26)下列关于Applet的说法中,错误的是
A)Applet自身不能运行,必须嵌入到其它应用程序(如浏览器)中运行
B)可以在安全策略的控制下读写本地磁盘文件
C)Java中不支持向Applet传递参数
D)Applet的主类要定义为java.applet.Applet类的子类
(27)下列选项中,不是APPLET标记的是
A)PARAM B)BODY C)CODEBASE D)ALT
(28)在Java中,与数据库连接的技术是
A)ODBC
B)JDBC
C)数据库厂家驱动程序
D)数据库厂家的连接协议
(29)下列命题中,错误的是
A)Java编程时,要求应尽量多用公共变量
B)Java编程时,要求应尽量少用公共变量
C)Java编程时,要求应尽量不用公共变量
D)Java编程时,要求应尽量使用私有变量
(30)若特快订单是一种订单,则特快订单类和订单类的关系是
A)使用关系 B)包含关系 C)继承关系 D)无关系
(31)若数组a定义为int[][]a=new int[3][4],则a是
A)一维数组 B)二维数组 C)三维数组 D)四维数组
(32)Java语言使用的字符码集是
A)ASCII B)BCD C)DCB D)Unicode
(33)在程序读入字符文件时,能够以该文件作为直接参数的类是
A)FileReader
B)BufferedReader
C)FileInputStream
D)ObjectInputStream
(34)java.io包的File类是
A)字符流类 B)字节流类 C)对象流类 D)非流类
(35)下列描述中,正确的是
A)在Serializable接口中定义了抽象方法
B)在Serializable接口中定义了常量
C)在Serializable接口中没有定义抽象方法,也没有定义常量
D)在Serializable接口中定义了成员方法
二、填空题(每空2分,共30分)
请将每一个空的正确答案写在答题卡【1】~【15】序号的横线上,答在试卷上不得分。
注意:以命令关键字填空的必须拼写完整。
(1)对长度为10的线性表进行冒泡排序,最坏情况下需要比较的次数为 【1】 。
(2)在面向对象方法中, 【2】 描述的是具有相似属性与操作的一组对象。
(3)在关系模型中,把数据看成是二维表,每一个二维表称为一个 【3】 。
(4)程序测试分为静态分析和动态测试。其中 【4】 是指不执行程序,而只是对程序文本进行检查,通过阅读和讨论,分析和发现程序中的错误。
(5)数据独立性分为逻辑独立性与物理独立性。当数据的存储结构改变时,其逻辑结构可
以不变,因此,基于逻辑结构的应用程序不必修改,称为 【5】 。
(6) 【6】 是Java程序中基本的结构单位。
(7)Java语言中,移位运算符包括:>>、<<和 【7】 ;
(8)构件不能独立地显示出来,必须将构件放在一定的 【8】 中才能显示。
(9)能将显示空间分成很多层的布局管理器是 【9】 。
(10)Applet是能够嵌入到 【10】 格式的文件中,并能够在浏览器中运行的Java。
(11)使用Swing编写Applet,则该Applet的主类应该定义为 【11】 类的子类。
(12)在Java中,线程的模型就是一个CPU、程序代码和 【12】 的封装体。
(13)键盘键入字符串并在计算机屏幕上显示,这时的数据源是 【13】 。
(14)任何一个Java程序都默认引入了一个包,这个包的名字叫java. 【14】 。
(15)Java语言中,有一个类是所有类或接口的父类,这个类的名称是 【15】 。
友情提示:1.本站致力于为广大学子提供各种有用的资料,目前在不断更新中,请把本站加入您的收藏夹。
2.您如有与本站相关的资料或者您对本站有何意见,请发邮件至wewin365@126.com,我们会及时根据您的反馈做出调整。
篇4:用友笔试题目
用友笔试题目
题目是分几部分的,大家看看参考一下吧!1.接口与抽象类的区别
2.List和Set的区别1s5K0e0s,y
3.Final的用处
4.int[] d={6,4,9,7,5,1}排序
5.抽象类中是否允许private static方法
6.Override与Overwrite的区别
1.面向接口编程的'好处
2.什么是单例模式?什么情况下使用?
3.什么是策略模式?什么情况下使用?
4.公司组织结构设计
1.什么是用例?如何确定用例?
2.活动图和时序图的区别?
3.测试驱动开发好处?
4.需求如何被跟踪和管理?
1.描述数据库的三个范式
2.数据库的参照完整性
3.什么是死锁?死锁的解决方法?
4.什么是事务?事务的特性是什么?
篇5:思迁数码科技Java软件工程师笔试真题
思迁数码科技Java软件工程师笔试真题
选择题
1:Which statements about Java code security are not true?
A.The bytecode verifier loads all classes needed for the execution of a program.
B.Executing code is performed by the runtime interpreter.
C.At runtime the bytecodes are loaded, checked and run in an interpreter.
D.The class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources.
2:What is the result when you compile and run the following code?
public class Test
{
public void method
{
for(int i = 0; i < 3; i++)
{
System.out.print(i);
}
System.out.print(i);
}
}
Choices:
What is the result when you compile and run the following code?
public class Test
{
public void method()
{
for(int i = 0; i < 3; i++)
{
System.out.print(i);
}
System.out.print(i);
}
}
Choices:
A.0122
B.0123
C.Compilation error
D.None of these
3:
Give the following code:
public class Example{
public static void main(String args[] ){
int l=0;
do{
System.out.println(“Doing it for l is:”+l);
}while(--l>0)
System.out.println(“Finish”);
}
}
Which well be output:
Give the following code:
public class Example{
public static void main(String args[] ){
int l=0;
do{
System.out.println(“Doing it for l is:”+l);
}while(--l>0)
System.out.println(“Finish”);
}
}
Which well be output:
A.Doing it for l is 3
B.Doing it for l is 1
C.Doing it for l is 2
D.Doing it for l is 0
4:Math.round(11.5)等於多少?
A.11
B.12
C.11.5
D.none
5:
What will happen when you attempt to compile and run the following code?
int Output = 10;
boolean b1 = false;
if((b1 == true) && ((Output += 10) == 20))
{
System.out.println(“We are equal ” + Output);
}
else
{
System.out.println(“Not equal! ” + Output);
}
Choices:
What will happen when you attempt to compile and run the following code?
int Output = 10;
boolean b1 = false;
if((b1 == true) && ((Output += 10) == 20))
{
System.out.println(“We are equal ” + Output);
}
else
{
System.out.println(“Not equal! ” + Output);
}
Choices:
A.Compilation error, attempting to perform binary comparison on logical data type
B.Compilation and output of “We are equal 10”.
C.Compilation and output of “Not equal! 20”.
D.Compilation and output of “Not equal! 10”.
6:
What will happen when you attempt to compile and run the following code?
(Assume that the code is compiled and run with assertions enabled.)
public class AssertTest{
public void methodA(int i){
assert i >= 0 : methodB();
System.out.println(i);
}
public void methodB(){
System.out.println(“The value must not be negative”);
}
public static void main(String args[]){
AssertTest test = new AssertTest();
test.methodA(-10);
}
}
What will happen when you attempt to compile and run the following code?
(Assume that the code is compiled and run with assertions enabled.)
public class AssertTest{
public void methodA(int i){
assert i >= 0 : methodB();
System.out.println(i);
}
public void methodB(){
System.out.println(“The value must not be negative”);
}
public static void main(String args[]){
AssertTest test = new AssertTest();
test.methodA(-10);
}
}
A.it will print -10
B.it will result in AssertionError showing the message-“the value must not be negative”.
篇6:卡夫笔试真题
卡夫笔试真题
1.你认为二级城市应该设立一个还是多个经销商,为什么?
(据当地情况而定,一般针对X这样成熟品牌的产品,一个经销商肯定满足不了市场需求,而且对厂家来说不容易控制,市场风险大,应该根据当地以往销量和市场预测来确定经销商数量)
2.6P的含义理解?
(产品,价格,渠道,促销,公共关系,政治权利)
3.列出拜访客户流程?
(准备,打招呼,理货,建议订单,报表)
4.你以前是如何管理业代?
(按照公司的管理制度,加上人性化的管理,然后简单介绍自己的工作流程及管理工具)
5.如何监督业代工作?
(针对业代拜访流程,实地走访调查,加上定期业绩回顾和考核)
6.发现业代偷懒如何处理?
(问明原因,无特殊情况,按照制度和常规处理,屡犯和影响不好的严厉处罚)
7.如果公司派你去一个城市做调查,你如何安排?
(准备,先向公司或同事和同行询问当地各种许调查信息的情况,然后调查;当场被考官问的漏洞百出,你没有具体的时间安排,没有明确的被调查对象的筹划,行程等等都没有事前计划好)
8.你能举例说明自己如何在工作中指导业代解决困难的呢?
(在我当初初建批发网络后,交给业代维护,出现了因客情不熟,客户不支持业代的工作,销售受很大影响,我发现业代每次给客户下单时都遭到反对,主要是他没确定进货负责人,没找到合适的突破口,见谁都谈定单.以我的经验,他比我年轻,可能跟客户有代沟,但跟客户的.弟弟是同龄人,话题多,建议他和客户的弟弟都交流,做好客情,后来慢慢客情融洽了,客户的弟弟主动帮他说话,定单很简单了)
9.你听过把梳子卖给和尚的试题吗?如果是你怎么卖?
(卖给寺庙,寺庙再卖给香客做信物,或供留宿的香客日常使用,挖掘梳子的艺术价值卖给有艺术修养的高僧收藏)
10.你对现在应聘的职位是怎么理解的?
(基层管理者,理解上级的下达任务和期待,准确的传达给下属,监督指导下属按进度和上级期望方式完成目标,协调与其他部门的关系,积极合作,反馈各种信息)
篇7:格力笔试真题
格力公司笔试题目分享:
1、不随时间变化的应力称为静应力,随时间变化的应力称为变应力,具有周期性的变应力称为交变应力,
2、对于直齿圆柱齿轮传动,其齿根弯曲疲劳强度主要取决于模数,其表面接触疲劳强度主要取决于直径。
3、链传动是依靠链条与链轮轮齿的啮合来传递运动和动力的,所以应属于挠性传动。
4、EDM的中文含义是电火花加工(Electrical Discharge Machining)。
5、φ30的轴,上偏差是-0.010,下偏差是-0.036,其最大极限尺寸是φ 29.990,最小极限尺寸是φ 29.964,其公差是 0.026.
6、合理的刀具耐用度包括最高生产耐用度与最低生产成本耐用度两种,
7、定位基准面和定位元件制造误差引起的定位误差称基准位置(基准不重合、基准位置)误差,工件以平面定位时,可以不考虑基准位置(基准不重合、基准位置)误差。
8、齿轮的模数m=D/Z,其中D为分度圆直径,Z为齿数。
9、刚度是指机械零件在载荷作用下抵抗弹性变形的能力。零件材料的弹性模量越小,其刚度就越大。
10、开式齿轮传动的主要失效形式是齿面磨粒磨损和轮齿的弯曲疲劳折断。
★ 笔试题中断
★ 编程笔试题解析
★ java自荐信
★ java个人简历