Community Sites
Create your own community website and start earning today !
It's Free !
 
Communities Members BookmarksPolls Fresher Jobs Funny Pictures MCA Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter




Java Interview Questions with Answers - Set 4


Posted Date: 09 Feb 2008    Resource Type: Articles/Knowledge Sharing    Category: General

Posted By: Bala       Member Level: Diamond
Rating:     Points: 4



Java Interview Questions with Answers - Set 4

Can a for statement loop indefinitely?
Ans :Yes, a for statement can loop indefinitely. For example, consider the following:
for(;;) ;.

What are order of precedence and associativity, and how are they used?
Ans :Order of precedence determines the order in which operators are evaluated in expressions. Associatity determines whether an expression is evaluated left-to-right or right-to-left.

When a thread blocks on I/O, what state does it enter?
Ans :A thread enters the waiting state when it blocks on I/O..

To what value is a variable of the String type automatically initialized?
Ans :The default value of an String type is null..

To what value is a variable of the String type automatically initialized?
Ans :The default value of an String type is null..

What is the catch or declare rule for method declarations?
Ans :If a checked exception may be thrown within the body of a method, the method must either catch the exception or declare it in its throws clause..

What is the difference between a MenuItem and a CheckboxMenuItem?
Ans :The CheckboxMenuItem class extends the MenuItem class to support a menu item that may be checked or unchecked..

What is a task's priority and how is it used in scheduling?
Ans :A task's priority is an integer value that identifies the relative order in which it should be executed with respect to other tasks. The scheduler attempts to schedule higher priority tasks before lower priority tasks..

What class is the top of the AWT event hierarchy?
Ans :The java.awt.AWTEvent class is the highest-level class in the AWT event-class hierarchy..

When a thread is created and started, what is its initial state?
Ans :A thread is in the ready state after it has been created and started..

Can an anonymous class be declared as implementing an interface and extending a class?
Ans :An anonymous class may implement an interface or extend a superclass, but may not be declared to do both




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Java Interview Questions with Answers - Set 3
Previous Resource: C++ Interview Questions with Answers - Set 1
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources

Watch TV Channels



Contact Us    Editors    Privacy Policy    Terms Of Use   

SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.