热门面试题与答案和在线测试
面向面试准备、在线测试、教程与实战练习的学习平台

通过聚焦学习路径、模拟测试和面试实战内容持续提升技能。

WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。

面试准备

Core Java 面试题与答案

Test your skills through the online practice test: Core Java Quiz Online Practice Test

问题 241. What is the purpose of the File class?

The File class is used to create objects that provide access to the files and directories of a local file system.

这有帮助吗? 添加评论 查看评论
 

问题 242. What is a socket?

A socket is an endpoint for communication between two machines.

这有帮助吗? 添加评论 查看评论
 

问题 243. How do I convert a numeric IP address like 192.18.97.39 into a hostname like java.sun.com?

String hostname = InetAddress.getByName("192.18.97.39").getHostName();

这有帮助吗? 添加评论 查看评论
 

问题 244. How can my application get to know when a HttpSession is removed?

Define a Class HttpSessionNotifier which implements HttpSessionBindingListener and implement the functionality what you need in valueUnbound() method. Create an instance of that class and put that instance in HttpSession.

这有帮助吗? 添加评论 查看评论
 

问题 245. How will you invoke any external process in Java?

Runtime.getRuntime().exec('.)

这有帮助吗? 添加评论 查看评论
 

用户评价最有帮助的内容:

版权所有 © 2026,WithoutBook。