GeekInterview.com
  I am new, Sign me up!
 

Java Interview Questions


Java Interview Questions

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

 
 Java Interview Questions
Sorting Options :  

What is the default capacity and load factor in Java Collection? Explain its role. 
Latest Answer: Default Capacity of any Collection say HashSet is 16. It means when you create a HashSet using its default constructor then first HashSet will be created to hold 16 elements  or you can say that memory space is allocated to hold 16 elements.load ...

What happens when you add a double value to a String? 
Latest Answer: When you add Double value to a String first the double value will be converted to String and appended to original String and new compelet String object will be created.For exam:String str = "Ram";Double d = new Double(12.50d);str = str + d;now ...
Read Answers (2) | Asked by : yamxxx

Why we prefer a subclass of Frame over an instance of Frame when we creating a window? 
Latest Answer: One important reason would be to override the existing paint method which will work only if we subclass Frame and not create an instance of the frame.However since extends is such a premium in java, we should not waste it by simply subclassing Frame but ...

How do you implement ArrayList without using Collections in Java? 
Latest Answer: def size=10def loadfactor=0.75def myarray = Object[size]def cursor=0def threshold = (int)(size * loadfactor)def add(obj)    if cursor < threshold       myarray[cusror++] = obj    else       ...

What is the need of nested and inner classes in Java? Explain where they are useful? 
Latest Answer: Using Inner classes you can write more efficient code and even reduce the typing work. Inner classes are frequently used in Event Handling. For example to MouseEvent event is handled in following example:import java.applet.*;import java.awt.event.*;public ...

50,000 HTML files are in a folder on a windows machine. Among them, content of some files(not the file names) contain the sentence "SocioMaC-Jus' Follow!". Write a Java program to count 
Latest Answer: If you need to _search_ random strings - use lucene. Otherwise i think sarje has the answer. Can you not write the text parsing in the file filter ? ...

50,000 HTML files are in a folder on a windows machine. Among them, content of some files(not the file names) contain the sentence "SocioMaC-Jus' Follow!". Write a Java program to count 
View Question | Asked by : venkatalaks

What is the basic functionality of DataOutput interface in java? 
Latest Answer: The DataOutput interface provides for converting data from any of the Java primitive types to a series of bytes and writing these bytes to a binary stream. ...

what do exception mean in java ? what type of run time exceptions? 
Latest Answer: Exception means an unwanted condition occur during the excecution of a program.Exception are of two type 1) Checked Exception2) Unchecked Exception Checked exception are those exception which can be checked at compile time such as NumberFormatException Unchecked ...
Read Answers (4) | Asked by : pankajjo

I would like to create a PDF file using java and iText , getting data from the database.I am looking for examples. 
Latest Answer: better to use this packageimport com.lowagie.*; ...

View page [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