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 31-40 of 502 Questions
<< Previous 1 2 3 [4] 5 6 7 8 9 10 Next >>
 Sponsored Links

 
 Core Java Interview Questions
Sorting Options :  

What is the output of the following program?class A{ public static void main(String[] s) { System.out.println(s[1] + s[2] + s[3]);}}java A 12345Options(i) 1(ii) 12(iii)1234(iv)234(v) Compilation Error 
Latest Answer: It will throw array index out of bounds exception which is not in options. ...

Which Underlying Collection will provide the remove() method? 
Latest Answer: Collection is an interface, and whatever class implements the interface must implement the remove() method.This question is not a complete sentence and that makes it kind of difficult to understand the intent and then answer it appropriately. ...

How an interface can be implemented using polymorphism?Why multiple inheritence is not used in Java? 
Latest Answer: I think your question is how to achieve Runtime Polymorphism using using interface.then the answer is :interface MyInf{         void show();}class A implements MyInf{          ...
Read Answers (7) | Asked by : adarsh01

When does thread throws illegal state of exception?Explain with two scenarios? 
Latest Answer: Any attempt to change the status after the thread has been started, throws an IllegalThreadstateException.Scenerio 1If a thread has already started and you try to call method setDaemon(boolean) on threadt.setDaemon(true);Scenerio 2If you call start() ...

int i=10;i=i++;System.out.println(i); 
Latest Answer: Yes this is similar totemp = i;i = i+1;i = temp;It will restore the value 10 since post increment. If its pre-increment last assignment will be i = temp+1 ...

How can we restrict a class so that no instance creation of class possible without declaring the class as Abstract ? 
Latest Answer: Only abstract classes can not be instantiated. If you make the constructor private then you can not instantiate it outside of the class but you can still instantiate it within the same class.  ...

How can i convert a string object to a primitive Integer type???????Thanks 
Latest Answer: class StringConver{ public static void main(String[] s) {     //String s1 = "Hello"; If you try this you will get NumberFormatException        String s1 = "12345";   ...

the Color class contains some color names as constant variables . but it is twice. what for it.it have two variables like RED and red. what for it. i know that one is for set and get Color.but how the 
Latest Answer: Yes. It is using for IGNORING case. ...

Latest Answer: SQLexception that is thrown when SQL Server returns a warning or error. This class cannot be inherited. SQLException comes under Runtime exception because errors comes under Unchecked Exceptions. ...
Read Answers (7) | Asked by : naggeek

Latest Answer: Local variable cannot be modified using any of the acceess specifiers means you can not write private or protected or public before them.Local variables are by default (implicitly)  private no need to make it explicitly private or protected or public ...
Read Answers (8) | Asked by : naggeek

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