GeekInterview.com
  I am new, Sign me up!
 

Java Interview Questions


Java Interview Questions

Questions: 928
Comments: 1357
 Showing Questions 21-30 of 928 Questions
<< Previous 1 2 [3] 4 5 6 7 8 9 10 Next >>
 Sponsored Links

 
 Java Interview Questions
Sorting Options :  

What could be possible scenarios to test sessions in any J2EE based application? 
Latest Answer: You can test whether session is alive or not by using isAlive() method ...

Can you load the server object dynamically? If so what are the 3 major steps involved in it?  
View Question | Asked by : rajanimovva

is it possible to define final keyword before constructor.if yes then describe? 
Latest Answer: generally, final keyword is used when we want not to override the class, or not to over ride the subclass methods, but Constructor have the methods or datamembers to activated when we instantiaed, so, final keyword should not use before constructor.... ...

Can HashMap store null values?If yes, how many?What is singleton class? Give one example.Please describe the difference between 'int' and 'Integer',what is the purpose of 'Integer', 
Latest Answer: Map Won't allow duplicates, So It will accept one null value.HashMap map = new HashMap();map.put(null, null);map.put(null, null); map.put(null, null);After adding 3 null key / value pairs. It will show only one null value.int => PrimitiveInteger ...

Name two classes that can store arbitrary number of objects. 
Latest Answer: ArrayList and Vector ...

class A { // some code here} class B { // some code here}class Ex {public static void main(string args[]) {A a=new B();B b=new A();a.add();b.add();}Will this program run? Explain the referencing the object 
Latest Answer: No it will not compile - as A does not extend B nor vice-versa when you try to assign an object of type B to a reference of type A (and vice-versa) you will get an 'Incompatible type' error message from the compiler! If inheritance were involved ...

We have a small requirement where we need to retrieve the e-mail ids of all the employees in the distributed list using LDAP, can any one give an idea how it can be done? 
Latest Answer: Hey did you got answer for your query? i too is in requirement of answer for your query.infact, my requirement is "how to access and display the contacts in a distribution list using java?" ...

Latest Answer: try this piece of code:    java.net.InetAddress remoteInetAddress = java.net.InetAddress.getByName(request.getRemoteHost());    String client=remoteInetAddress.getHostName();   System.out.print(client); ...
Read Answers (1) | Asked by : jashlok

What is wrong in the following code?pulic synchronized void setXXX(String s){ this.setXXX(s);}public synchronized String getXXX(){...}orpulic synchronized void setXXX(String s){ return (this.getXXX());}
Read Answers (1) | Asked by : julia

Latest Answer: to create word doc use MIME type "application/msword"ORuse POI ,is an open source apache project to create, read ms office file formati.e .doc, .xls, for more info visit poi . apache . org/ ...
Read Answers (1) | Asked by : Mandar Apate

View page << Previous 1 2 [3] 4 5 6 7 8 9 10 Next >>

Ask A Question
Go Top
 Sponsored Links

 
Sponsored Links

 
Ask Question
You must login to Ask Question or Register your free account

Category:

 
Question Title:


Question in Detail:

Add this to my Subscribed Questions (?)
Send me email when new answer is posted (?)

 
Subscribe
Get Latest Updates Via RSS Reader or by Email
 Forum Discussion Subscribe to Forum Discussions Via E-Mail Latest Forum Discussions Subscribers
 Knowledge Base Subscribe to Knowledge Base Series Via E-Mail Knowledge Base Subscribers
 Learning Series Subscribe to GeekInterview Learning Series Via EMail Learning Series Subscribers
 Freelance Jobs Subscribe to GeekInterview Freelance Jobs Via EMail Latest Freelance Jobs Subscribers
 GeekInterview Blog Subscribe to GeekInterview Blog Via EMail GeekInterview Blog Subscribers
 Testing Interview Questions Subscribe to Testing Interview Questions Via EMail Testing Interview Questions Subscribers
 Oracle Interview Questions Subscribe to Oracle Interview Questions Via EMail Oracle Interview Questions Subscribers
 Java Interview Questions Subscribe to Java Interview Questions Via EMail Java Interview Questions Subscribers
 Latest Placement Papers Subscribe to Latest Placement Papers Placement Papers Subscribers
 Free Training Subscribe to Free Training Via EMail Free Training Subscribers
 Learn AJAX Subscribe to AJAXwith.com Via EMail AJAXwith Subscribers
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape