GeekInterview.com
  I am new, Sign me up!
 

Core Java Interview Questions


Core Java Interview Questions

Questions: 500
Comments: 2813
 Core Java Tags
 Showing Questions 1-10 of 502 Questions
[1] 2 3 4 5 6 7 8 9 10 Next >>
 Sponsored Links

 
 Core Java Interview Questions
Sorting Options :  

Can we make use of "this" keyword reference inside a abstract method or abstract class? Explain 
Latest Answer: We can't use this with abstract class or method because this is use for current object while in case of abstract class or method we can't make object therefore there is no way of using this with abstract class or method. ...

Which is faster at class loading - interface or abstract class? Why? 
Latest Answer: Abstract classes are used when they have some sharable implementations and some specific methods left to subclasses to implement. Interface is used when there are no sharable implementation and the implementation changes frequently.Abstract class ...

If Exception occurs in finalize() what happened to garbage collector? It will run or not? Explain 
Latest Answer: Any of the exception does not have effect of finalize method. The Portion of finalize method will do his work if any of the exception occur. ...

Explain the use of serialization process in real time projects? 
Latest Answer: Serialization is writing the state of the object to a byte stream. This is useful when you want to save the state of the object in a persistent  storage such as file. ...

class A{ public static void main(String[] a){ System.out.print(String.valueOf(1)+String.valueOf(2)); String s1="s1"; String s2=s1.toString(); 
Latest Answer: The output is:       12,trueExplanation:The easy bit is that the first call to print() displays "12".The Javadoc for String.toString() says the return value is:       "This object ...

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: If a class implements any interface than the object of that class is also interface type, i.e. object instanceof interface is true. And when an Object is required to be treated in some specific functionality say cloning or serialization the object is ...

What are all the methods used for Inter Thread communication and what is the class in which these methods are defined? 
Latest Answer: Two or more threads are communication via wait(), notify() and notifyAll() method of an Object class.wait(): method will lock the monitor of the thread to not process.notify(): method will wake the thead which undergoes waiting state, the wait state is ...
Read Answers (5) | Asked by : renijoym

In how many ways we can create an object? Explain with example. 
Latest Answer: 1.Using New KeyWord2.Using ClassForName3.Clone ...

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 JumbleArray{         public static void main(String args[])         {                char charArr = {"A","B","C"};                ...

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

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

Page copy protected against web site content infringement by Copyscape