-
Class Instance
How many ways one can create an instance of a class?
-
DataType Byte Values
What are the byte values of datatypes?
-
Inherit Private/Protected Class
Can a private/protected class be inherited? Explain
-
Java Program Execution
How does Java program compile and execute to give output?
-
Runnable Interface
Why we are using by implementing the runnable interface rather than we have the run() method in Thread class?
-
Core Java
What is difference between Core Java and Advance Java?
-
Read Input at Run Time
What are the different ways to read input from keyboard at run time?
-
Constructor Call
How can we call a constructor through another constructor in the same class?
-
Garbage Collector
What are the 4 stages of garbage collector? How and when Garbage collector comes into picture? What is the importance of finalize method?
-
Convert List Object to Map Object
How to convert list object in to map object?
-
Java Methods
What are the different types of methods and their use in Java?
-
Vector Size
What is the default size of Vector
-
Compress String
How to compress a String (algorithem)?
-
MVC Advantages
What is MVC and what are its advantages?
-
Servlet Lifecycle
What is the Lifecycle of a Servlet?
-
Java Deadlock
How to avoid deadlock in Java?
-
Static Import
What is a static import? Why it is required?
-
Sizeofthe Variable
How to find the size of the (datatype) variable in java?in c we use sizeof() operator for for finding size of data type
-
Exception handling catch block?
Please observe the following code....public class MyClass{ public static void main(String[] args) { try{ //code here }catch(Exception e) { System.out.println(e); } }}if the try block throws an ArithmeticException,NullPointerException,etc....we can handle the exception...Because those are the sub classes of Exception class...The Question...
-
Implementing Pagination
How we implement pagination in j2ee
Java Interview Questions
Ans