GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

Core Java Interview Questions


Core Java Interview Questions

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

 
 Core Java Interview Questions
Sorting Options :  

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: public int x = 1; int x = 1; static int x = 1; public final int x = 1; public public static int x = 1; public final int x = 1; static final int x = 1 public static final int x = 1; Above combinations all are legal & same.ANDall declerations(var) ...

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: (v) Compilation Error ...

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: interface I1{     void disp();}class MyClass implents I1{        void disp("JAI SREE RAM");}public class TestPoly{    public static void main(String args[])    ...
Read Answers (5) | 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: eleven is the correct answer i=i++;the above statement is equivalent to i=i;                             //here ...

How can we restrict a class so that no instance creation of class possible without declaring the class as Abstract ? 
Latest Answer: yes by making the constructor of a class private we can achieve this. Since the private modifier is accessible withing the class, when a class outside this class tries to instantiate this class it gives error as the class cannot be instantiated. ...

How can i convert a string object to a primitive Integer type???????Thanks 
Latest Answer: if u try to convert "hello" to int u will get NumberFormatException ...

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

View page << Previous 1 2 [3] 4 5 6 7 8 9 10 Next >>

Ask A Question
Go Top
 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
5sbarik 21
6mandyjoshi 20
7Karuna Reddy 13
8santh kumar 11
9sadashivarao 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
Sponsored Links

 
Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape