Java Related Interview Questions
Questions Answers Views Company eMail

What is garbage collection in Java, and how can it be used ?

Infosys, HCL, Accenture, Wipro, Sara, SITS,

32 54729

Differentiate Vector and ArrayList?

Wipro, Max Telecom,

6 7112

Differentiate constructor and a method and how are it be used?


6 7658

What is an abstract class?


7 6516

How can final class be used?

Wipro, Accenture,

5 8393

By what default value is an object reference declared as an instance variable?


1 9692

Java support what type of parameter passing ?


7 11018

Explain the term serialization?


10 8840

Is there is any error if you have multiple main methods in the same class?

Wipro, Infosys,

10 10154

What is Overriding and how can it be used?

Consagous, Wipro,

7 12762

How is serialization used generally ?

3 3991

How are Swing and AWT be differentiated?


3 5398

Explain pass by reference and pass by value?

IBM, Wipro,

8 10928

In which way does a Primitive data type is passed ?

Sun Microsystems,

5 7049

What happens when a main method is declared as private?

L&T, DELL, Infosys, Sun Microsystems,

21 33478

Un-Answered Questions { Java Related }

I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>


How to know howmuch data is truncated?


Is it possible to create both queues and topics to single jms server? if yes then how it works?


What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example? Thanks, Bose. Infosys 2 In which way does a Primitive data type is passed ? Sun- Microsystems 4 what is the use of declaring constructor as private? Sai- Softech 5 what is difference between global methods and local methods? 1 What is meant by class loader and how many types are there? Apple 1 what is meaning of JIT? 4 What is an abstract class? Wipro 5 what is filters and its use? Virtusa 2 why is multiple inheritance not allowed in java? Elementus-Technologies 7 Differences between jdk 1.4 and 1.5 Wipro 4 is JVM platform dependent or independent..? IBM 6 what is main purpose of abstract class? 5 what is difference between colection and collections? Tech-Mahindra 11 What error occurs if a try-catch-finally statement sequence does not have a catch clause? 2 Explain the difference between scrollbar and scrollpane? 1 Explain the differences between public, private, protected and static? 4 Explain the difference between getAppletInfo and getParameterInfo? 1 Is Cegonsoft Pvt.Ltd. a good Institute? 4 Why only one Class is public in one file? Explain in details. Thanks in Advance. 11 Which method will get invoked first in a stand alone application?


what is the application compatability?


What are advantages of using Java?s layout managers than windowing systems?


ioc vs dependency injection?


How to deploy Jar, War files in J2EE?


What is the exact difference in between Unicast and Multicast object?


Write a Java program to deactivate a cell phone when authentication failed


Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me


int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!


What is isolation level? How to set it?


code to insert values/rows into oracle database from a java swing textfield when a button is pressed(using preparedstatements)


Explain the architectural relationship between JavaBeans and JTA?