GeekInterview.com
  I am new, Sign me up!
 

Core Java Interview Questions


Core Java Interview Questions

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

 
 Core Java Interview Questions
Sorting Options :  

What exactly is the difference between between throw and throws? If both are used for the same purpose then why are both needed instead of one? 
Latest Answer: hi there,              throw:the throw keyword is used to throw the exception manually,that is when you feel a particular line in your code, when executed is capable of having some exception ...

What will happen if same access specifier repeats more than once within a class? 
Latest Answer: Multiple Acceess Specifier cannot be used with a class because it makes no sense and if you do so compile time error(wrong combination of modifiers) will be generated. ...
Read Answers (6) | Asked by : naggeek

When We should use Synchronization in Java and when we should not? 
Latest Answer: Synchronization is used in Java, if there are multiple threads which are accessing same variable, then they access it one by one. ...

suppose i have 2 members in my class can i serialize a single member? Is there any way to do that? 
Latest Answer: how about move the other 24 member variable to a class?... ...
Read Answers (4) | Asked by : sahadeva

What is Use of declaring an array list object like List list = new ArrayList() rather than creating object like ArrayList arr = new ArrayList(); 
Latest Answer: We may decide later to use the LinkedList instead of ArrayList, in this situation we just need to replace the new ArrayList() part with new LinkedList() if we keep the referance variable as List interface.whereas if we keep ArrayList as the referance ...
Read Answers (6) | Asked by : rgmanoj

We usually extend Exception instead of Throwable. Why? In what situations we extend Throwable.Could anybody give the answer in detail. Thanks in advance. 
Latest Answer: By extending Throwable, you are giving hook for RuntimeException and programmers normally do not catch unchecked exceptions.  However, if you have an app server and want to ensure that the server is not brought down by some ...
Read Answers (2) | Asked by : svk_viza

Latest Answer: If the variable 'str' is Stringstr=5.45+"3.2"=5.453.2 ...

Latest Answer: Yes  we can declare interface in servlet through httpservlate ...

What is the output of the following program, When tested under JDK 5.0class ExceptionDemo{ public static void main(String[] args) { int a[] = new int[] {1,2,3,4,5}; try{ System.out.prinltln(a[6]); 
Latest Answer: It will generate compile time error. Unreachable code. ...

public interface I1{Static String x="inside I1";public void someMethod();}class A implements I1{ public static void main(String args[[]){ System.out.println("Calling I1 var ..."+I1.x);}} 
Latest Answer: This source code will not compile and generate following errorclass A is not abstract and does not override someMethod()If you make class A abstract or override someMethod() then it will compile and produce following result whatever is String literal ...

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
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 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape