资源描述:

英文Java面试题 Question What is transient variable Answer Transient variable can t be serialize. For example if a variable is declared as transient in a Serializable class and the class is written to an ObjectStream, the value of the variable can t be written to the stream instead when the class is retrieved from the ObjectStream the value of the variable becomes null. Question Name the containers which uses Border Layout as their default layout Answer Containers which uses Border Layout as their default are window, Frame and Dialog classes. Question What do you understand by Synchronization Answer Synchronization is a process of controlling the access of shared resources by the multiple threads in such a manner that only one thread can access one resource at a time. In non synchronized multithreaded application, it is possible for one thread to modify a shared object while another thread is in the process of using or updating the object s value. Synchronization prevents such type of data corruption. E.g. Synchronizing a function public synchronized void 1 { // Appropriate -related code. } E.g. Synchronizing a block of code inside a function public myFunction { synchronized this { // Synchronized code here. } } Question What is Collection API Answer The Collection API is a set of classes and interfaces that support operation on collections of objects. These classes and interfaces are more flexible, more powerful, and more regular than the vectors, arrays, and hashtables if effectively replaces. Example of classes HashSet, HashMap, ArrayList, LinkedList, TreeSet and TreeMap. Example of interfaces Collection, Set, List and Map. Question Is Iterator a Class or Interface What is its use Answer Iterator is an interface which is used to step through the elements of a Collection. Question What is similarities/difference between an Abstract class and Interface Answer Differences are as follows Interfaces provide a of multiple inheritance. A class can extend only one other class. Interfaces are limited to public s and constants with no implementation. Abstract classes can have a partial implementation, protected parts, static s, etc. A Class may implement several interfaces. But in case of abstract class, a class may extend only one abstract class. Interfaces are slow as it requires extra indirection to find corresponding in the actual class. Abstract classes are fast. Similarities Neither Abstract classes or Interface can be instantiated. Question How to define an Abstract class Answer A class containing abstract is called Abstract class. An Abstract class can t be instantiated. Example of Abstract class abstract class testAbstractClass { protected String myString; public String getMyString { return myString; } public abstract

展开阅读全文

java经典英文面试题,Java-英文面试题-经典相关推荐

  1. java英文笔试题_java英文面试笔试题

    java英文面试笔试题 Java是一门面向对象编程语言,不仅吸收了C++语言的各种优点,还摒弃了C++里难以理解的多继承.指针等概念,小编收集了java英文面试笔试题,欢迎阅读. Question: ...

  2. java 项目英语面试问题_Java 英文面试题

    1. Q: What is HashMap and Map? A: Map is Interface and Hashmap is class that implements that. 2. Q: ...

  3. Java简易实现凯撒密码——英文句子加密

    Java简易实现凯撒密码--英文句子加密 今天要讲的是凯撒密码,它是一种替换加密的技术,明文中的所有字母都在字母表上向后(或向前)按照一个固定数目进行偏移后被替换成密文.例如,当偏移量是3的时候,所有 ...

  4. JAVA打印指定长度的随机英文字母(小写)

    JAVA打印指定长度的随机英文字母(小写) 这里要用到一个生成随机数的方法Math.random() 关于Math.random() 它是令系统随机选取大于等于 0.0 且小于 1.0 的伪随机 do ...

  5. 【Java】据给出的英文短文,作如下统计

    [Java]据给出的英文短文,作如下统计 题目要求 设有英文短文如下: Last fall I walked with a friend in hometown. He was recognized ...

  6. Java—输入数字星期,输出英文(switch语句)

    Java-输入数字星期,输出英文(switch语句) Description 从键盘上输入数字星期,然后输出它的英文. 其对应关系是: 1 Monday 2 Tuesday 3 Wednesday 4 ...

  7. 【基于python版本的连续英文分词实现java版本的英文分词器】

    连续英文分词器java版本 定义词典, 构建词典 切词实现 在搜索领域,用户的输入是千奇百怪的,有时候用户输入的是连续的英文,如果不能有效的进行切分,那么搜索召回的效果可能会比较差,所以我们需要针对连 ...

  8. java 将中文字符转为英文,java 将中文字符号转为英文

    java 将中文字符转为英文,java 将中文字符号转为英文 package test;import java.io.UnsupportedEncodingException;public class ...

  9. Java之——数字金额转化为英文金额

    转载请注明出处:http://blog.csdn.net/l1028386804/article/details/52599090 今天,给大家带来一篇基于Java将数字金额转化为英文金额的示例代码, ...

  10. java中必检异常有哪些_Java面试题经典面试题220道(附答案)

    Java基础: 1.JDK 和 JRE 有什么区别? 2. == 和 equals 的区别是什么?== 解读 3. 两个对象的 hashCode() 相同, 那么 equals() 也一定为 true ...

最新文章

  1. (U3D)Time的使用
  2. 洛谷P1966 火柴排队(逆序对)
  3. 网络克隆报a:\ghosterr.txt故障解决一例
  4. 数据结构——最短路径之Dijkstra算法(与最小生成树的prime算法很像,建议一起看)
  5. eclipse tomcat新建一个_Javaweb07-Eclipse自动创建动态web项目
  6. VS2017编译UE4.19.2报错
  7. 常用Java API 熟悉 方法 从记不得到忘不掉 java1.8.61为例
  8. oracle树子类遍历父类_不懂数据库索引的底层原理?那是因为你心里没点b树
  9. 【LeetCode】【HOT】20. 有效的括号(栈)
  10. 用计算机探索ppt,《用计算器探索规律 2》ppt课件.ppt
  11. 软件测试的支付流程图,软件测试流程图案例.doc
  12. android 如何清除应用数据恢复,手机删除数据如何恢复?手机数据恢复方法【图文教程】...
  13. 如何获取Android应用签名?
  14. 【笔记】QCA9531无线校准
  15. php元换成万元,元换算成万元公式(元换算成万元换算器)
  16. 叮咚买菜涨势,撑起生鲜电商门面
  17. sin函数对照表_三角函数表值对照表格
  18. 正点原子STM32-串口中断服务函数USART1_IRQHandler关于USART_RX_STA的学习笔记
  19. 如何下载网课资料? PPT+视频
  20. 本地git代码推送到远程git步骤

热门文章

  1. DataList分页访问FooterTemplate模板里的控件
  2. MSSQL数据库中发现D99_Tmp数据表的处理办法
  3. Apusic Operamasks的资源注入
  4. [导入] 用java把页面日期控件写出来
  5. XPath最通俗的教程(ZZ)
  6. efcore 批量_【EF Core】Entity Framework Core 批处理语句
  7. python tensorflow教程_TensorFlow入门教程
  8. 查看usb控制器固件日期_三星发布两款USB Type-C电源控制器芯片 支持100W的充电功率...
  9. sql调优的几种方式_「数据库调优」屡试不爽的面试连环combo
  10. python复利计算函数_PyThon编程入门:了解python format格式化函数的使用