GeekInterview.com
  I am new, Sign me up!
 

Core Java Interview Questions


Core Java Interview Questions

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

 
 Core Java Interview Questions
Sorting Options :  

What is need of polymorphism in Java? What could have happen if polymorphism is not present? 
Latest Answer: Polymorphism enables the method overloading property of Java through which you can overload a method with the same name but with the different number of parameters or types(data types) of parameter.One more thing only return type alone is not efficient ...

Can we make use of "this" keyword reference inside a abstract method or abstract class? Explain 
Latest Answer: Yes that is true that we cannot create object of an abstract class. But the question is "Can we use this keyword in an abstract class."The answer is YES we can..Have a look at the following code/* * To change this template, choose Tools ...

Which is faster at class loading - interface or abstract class? Why? 
Latest Answer: In both cases differences will be negligible. It only depends upon our designing to use which one. ...

If Exception occurs in finalize() what happened to garbage collector? It will run or not? Explain 
Latest Answer: If a finalize method throws any exception, then the execution of the finalize method is halted and the object remains eligible for garbage collection. This doesn't mean that it will never be garbage collected. Whenever garbage collection runs again, ...

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: As we have two println statements, so the output would be printed as follows:12,true ...

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

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
4Sarje 24
5Beena 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 - 2010 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape