8. What are the advantages/benefits of OOPs in Java? Ans: OOPs concept in Java offers several advantages that are not available in procedural programming like C, Pascal, etc. Some of the major and important benefits of object-oriented programming are as follows: Security ...
It’s a great design question and asked a lot in java interviews. This post provides all the differences between abstract class and interface. When should we use interface over the abstract class and vice versa? The post also explains how to use abstract class and interface to create a flexi...
Java 8 has been released in March 2014, so it’s one of the hot topics in java interview questions. If you answer this question clearly, it will show that you like to keep yourself up-to-date with the latest technologies. Java 8 has been one of the biggest releases after Java 5 anno...
This is a verypopular tricky Java questionand its tricky because many programmer think that finally block always executed. This question challenge that concept by putting return statement in try or catch block or calling System.exit from try or catch block. Answer of this tricky question in Java...
Well, you really need to know the concept of string pool very deeply to answer this question or similar questions. 8. How does String’ssubstring()Method Works? A string in Java is, like any other programming language, a sequence of characters. This is more like a utility class to work...
Another good question that is usually followed up after answering how hashmap works. The most important constraint in a Map is thatwe must be able to fetch the ‘Value‘ object back in the future using the ‘Key‘ object. Otherwise, there is no use of having such a data structure. ...
Looking forward to appear in Java Interview, here are the key 100+ Java Interview Questions with Answers only for you including some of the tricky questions with answers. Table of Contents Sr.No.Question 1 What are new Java8 Features? 2 Difference between GET & POST METHODS? 3 Difference be...
Ans: Collection is an interface which is the root of the Collections framework, as you can see in question#2, List, Set and Queue are the interfaces that extend the Collection interface.Collections is a utility class with static methods that operate on or return Collections. It provides severa...
阿提说说/Java-interview-question 代码Issues0Pull Requests0Wiki统计流水线 服务 加入Gitee 与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :) 免费加入 已有帐号?立即登录 该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
Java-Interview-Question/j2ee/types_of_directive_tags.md Go to file Copy path Cannot retrieve contributors at this time 7 lines (4 sloc)307 Bytes RawBlame Types of directive tags? <%@ page ... %> : Defines page-dependent attributes, such as scripting language, error page, and buffering re...