GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

Java Interview Questions


Java Interview Questions

Questions: 921
Comments: 1287
 Showing Questions 11-20 of 921 Questions
<< Previous 1 [2] 3 4 5 6 7 8 9 10 Next >>
 Sponsored Links

 
 Java Interview Questions
Sorting Options :  

I need an algorithm for some program. I'll take some number (say 'n'), then i should print the numbers in spiral shape starting from square(n). Can any one pls help me..Ex: if n=3, it should 
Latest Answer: One of possible solutions:public class NumberSpiralShape { /*** @param args*/public static void main(String[] args) { // TODO Auto-generated method stub int n = 3, i, side = n, x=0, y=0;int tab [][]= new int [n][n];  i=n*n;while(i>=1){for(int ...

how to convert or achieve the program from .class file?? 
Latest Answer: Using jadclipse pluging installed in ur IDE,u can view the class files like java files, but u will not be able to edit.To make a class file into java file in editable format, get the jad.exe filein crompt prompt, goto the file location, keep the jad.exe ...
Read Answers (2) | Asked by : AmitPai

What is Nullpointer Exception How it will be reduced 
Latest Answer: There are many reasons to get a Null pointer Exception . Burn it in ur Brain : NullPointerException can occur only on OBJECTS . not primitives.the above said answer holds a good example .Example 2:  String s = null;  System.out.println(s.concat("asdad") ...

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?" ...

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

Ask A Question
Go Top
 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
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape