GeekInterview.com
  I am new, Sign me up!
 

Core Java Interview Questions


Core Java Interview Questions

Questions: 505
Comments: 2879
 Core Java Tags
 Showing Questions 11-20 of 507 Questions
<< Previous 1 [2] 3 4 5 6 7 8 9 10 Next >>
 Sponsored Links

 
 Core Java Interview Questions
Sorting Options :  

When there is no methods in the marker interface, then what is the use of marker interface. What is the functionality of the interface. Why do we need to implement marker interface? 
Latest Answer: Marker interface do not have any method. It is used only to inform JVM that such class can do some special function like clone, serialize. ...

What are all the methods used for Inter Thread communication and what is the class in which these methods are defined? 
Latest Answer: Three methods are used. They are1. wait() - makes one thread wait for some time till another thread is being executed2. notify() - makes one wait process into ready state process3. notifyall() - makes all the waiting processes into ready ...
Read Answers (6) | Asked by : renijoym

In how many ways we can create an object? Explain with example. 
Latest Answer: There are 5 ways:1-> new operaotor2-> Class.forName()3-> Cloning4-> Deserialization5-> Class.newInstance() ...

What is the meaning of supplying string[] args to main method? 
Latest Answer: public static void main(String args[]) This array of Strings is the mechanism through which the runtime system passes information to your application. Each String in the array is called a command line argument. Command line arguments let users affect ...

An array A is of size N. Write a java method that jumbles all values in the array. All possible permutations must be possible and chances for each possible permutation must be equal. For example, size 
Latest Answer: class jumble{public stativ void main(String aa[]){int a[]=[1,2,3];for(i=0;i

Suppose a Super Class method throws an exception and this method is Overriden in the subclass with no exception. Now if you create a super class reference that has a subclass object. This throws a compile 
Latest Answer: class Super { void foo() throws NullPointerException { System.out.println("Super"); } } public class SupSub extends Super { void foo() { System.out.println("SupSub"); } public static void main( String[] argv ...

What does "wrapping" an object mean?  
Latest Answer: When an object A is said to "Wrap" object B, it means that Object A HAS A reference to the Object B and deligates calls to it. ...

How to pass commandline arguments in main function through Eclipse Tools (editors). 
Latest Answer: Click the Run menu barNow click the Open Run DialogueA new window will be opened.In that window click the Java applications thenA new sub menu will be opened in that select Arguments menu andType the Arguments with space.Click run to view your result ...

How many methods to read numbers and characters and what should be used. 
Latest Answer: methods in InputStream to read byte and in Reader to read character are -int read()int read(byte buffer[])int readIbyte burrer[],int offset,int numBytes) ...

I'm trying to write an Iterator class for a LinkedList class that I wrote.One of the methods is "public E next()"I try to return an "E" but eclipse says "cannot convert from 
Latest Answer: Object is a class and E is a generic type parameter . And Iterator class alwayes return Object so to fix this problem, you need to call it. For exampleimport java.util.ArrayList;import java.util.Iterator;class list {   ArrayList list = new ...
Read Answers (4) | Asked by : esekiel

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 (?)

 
Expert Members
# User Name Count
1sampra 161
2sujatham 75
3vinaymudgil007 36
4Beena 24
5Sarje 24
6sbarik 21
7mandyjoshi 20
8Karuna Reddy 13
9rabbi 11
10santh kumar 11
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 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape