Java Basic Interview Questions 1. Why is Java a platform independent language? Java language was developed in such a way that it does not depend on any hardware or software due to the fact that the compiler compiles the code and then converts it to platform-independent byte code which can...
Most Frequently asked Java Interview Questions and Answers with examples: In this tutorial, we have covered almost 50+ important core Java interview questions for freshers and experienced candidates. This post on JAVA Interview Questions is prepared to help you understand the basic concepts of Java ...
Error:Erroris an error that cannot be handled by the program,We can't capture it bycatchCapture viacatchis not recommended. For example, Java virtual machine running error (Virtual MachineError), virtual machine memory is not enough error (OutOfMemoryError), class definition error (NoClassDefFound...
It is my great honor to be here for your interview. My name is fangjian, I’m 24 years old. And I come from An Hui province, An Qing is my hometown. My undergraduate program will be accomplished in Huangshan universty which is located in Zhe jiang province . Now I am trying my be...
4. Java中局部变量的默认值?[16] Java中的局部变量是在方法,代码块,构造函数等中局部声明的变量. 当程序控件输入方法,代码块,构造函数等时,则创建局部变量,并且当程序控件离开方法,代码块,构造函数时等等,然后销毁局部变量. 局部变量在Java中没有任何默认值. 这意味着应在首次使用...
Basic Java Interview Questions Q1. Explain JDK, JRE and JVM? JDK vs JRE vs JVM JDK JRE JVM It stands for Java Development Kit. It stands for Java Runtime Environment. It stands for Java Virtual Machine. It is the tool necessary to compile, document and package Java programs. JRE refers...
such as MySQL and Oracle. This article has a collection of 40+ interview questions related to the JDBC API. They cover areas from basic Connection to DataSource to Connection Pooling. It will help you in interviews for questions related to JDBC API and how to use it. If you are new to...
It is one of the java interview questions for freshers. Of course not 100% freshers, but this question tests understanding of basic design principles, and the ability to apply them. In particular, adhering to the “open to extension, closed to modification” principle helps to write decoupled,...
Garbage collection is one of the most important feature of Java. Garbage collection is also called automatic memory management as JVM automatically removes the unused variables/objects (value is null) from the memory. User program cann't directly free the object from memory, instead it is the jo...
Same interface could be used for creating methods with different implementations Complete implementation can be replaced by using same method signatures Method Overriding to achieve Polymorphism:Overriding deals with two methods; one in the parent class and the other one in the child class and have th...