GeekInterview.com
  I am new, Sign me up!
 

Java Interview Questions


Java Interview Questions

Questions: 928
Comments: 1357
 Showing Questions 31-40 of 928 Questions
<< Previous 1 2 3 [4] 5 6 7 8 9 10 Next >>
 Sponsored Links

 
 Java Interview Questions
Sorting Options :  

Latest Answer: The answer given is absolutely right along with that we also say the following1. Static variable has only one copy for all the methods in class while instance variable has many copy.2. Class can access only static variable while object can access both class and instance variable.   ...
Read Answers (2) | Asked by : shams

Latest Answer: Dictionary Class ...

Latest Answer: this method is used to tracing the instance in your application. Which instance is running of the class. ...
Read Answers (1) | Asked by : girish

Which is the most convient way to create a thread and Why?1) Extends from thread or2) Implements from Runnable Interface.
Read Answers (2) | Asked by : Daitari Jena

Latest Answer: Assertions are kind of mechanisms in java from 1.4 onwards, where assert is a keyword. By using assertions you can validate your assumptions. Assertions should be only used to validate certain assumptions. Assertions should:1. Be used to assertain the ...

The following code defines the ThreadSample class. public class ThreadSample implements Runnable { public static void main(String args[]) { System.out.println("This is the ThreadSample object"); } public void run() { while (true) { try { Thread.sleep(100); System.out.println("Thread ran."); } catch (Exception e) {} } } } Referring to the sample code above, how do you start an instance of ThreadSample in a new thread?
Read Answers (1) | Asked by : Teena

Class Animal { void speak() { System.out.println("speak"); } } class Dog extends Animal { void speak() { System.out.println("woof!"); } } class Cat extends Animal { void speak() { System.out.println("meow!"); } } public class AnimalTest { public static void main(String[] args) { Animal[] animals = new Animal[3]; animals[0] = new Animal(); animals[1] = new Cat(); animals[2] = new Dog(); for (int i=0; i < animals.length; i++) animals[i].speak();
Read Answers (1) | Asked by : Teena

Latest Answer: //declareprivate JTabbedPane pane ; //initialisepane = new JTabbedPane(); //add GUI components to the TABPANEpane.addTab(nameoftab, component); ...

Latest Answer: Telivison is a class Onida TV is an object ...
Read Answers (2) | Asked by : vasu

Latest Answer: We use synchronized methods or synchronised blocks to make your application thread safe. You can use synchronized methods, but the problems may be:1. It degrades the performance of your application.2. Slows down the your program because synchronozation ...

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

 
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