ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What method is used to know the status of Checkbox(i.e it 
is checked or unchecked)?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What method is used to know the status of Checkbox(i.e it is checked or unchecked)?
Answer
# 1
Hi guys, while posting questions in forum make sure that 
the question that has been posted by you has clarity or not.

For this question two possible answers are there, they 
belogs to

 1. AWT controls
 2. Java script

Both are having different methods to know the selected 
check box value.

Coming to AWT controls, the solution is..

   ItemEventobject.getStateChange()==ITEMEVENT.SELECTED

is the syntax to know the selected check box.

Eg::
  
public void itemStateChanged(ItemEvent ie)
{
  
    double price = out.getPrice();
    if (ie.getStateChange() == ItemEvent.SELECTED)
          price += 0.50;
    else price -= 0.50;
      
}

In javascript it is so easy to select the checked check box 
value by using "checked" property.

Regards
Latha
 
Is This Answer Correct ?    2 Yes 0 No
Latha
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is the difference between serialization and deserialization? ABC2
Difference between JDK, JRE, JVM Oracle5
As a developer what steps do you take to improve the performance?  3
What are the latest versions in JAVA related areas? Netcraft2
Difference between overloading and Overriding. <Giving a confusing example to test the concept.> (also asked in PA Consultancy Group,iflex,Value chain,IBM,CTS,Accenture, Tarang> Symphony6
In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not???? Accenture8
How can we find size of the object ? RazorSight1
Is &&= a valid Java operator?  2
Difference between Web-based applications,Client- Server applications and Distributed applications? Infosys2
Can we access private data outside of the class directly in java programming language? Why There is no runtime checking in java, which leads to access the private data directly outside of a class? Google2
explain the clone method and clonable interface  1
What is meant by class loader and how many types are there? Apple1
is this possible to create an array of 0 length? if so how? if not so why? coz we have an array in main() likw this "static void main(String [] s) then what it signifies? Hexaware2
What method is used to compare two strings ?  4
Which containers may have a MenuBar?  1
what is request dispatcher and how does it work? CTS1
Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time? Aricent2
Given: 11. public static void main(String[] args) { 12. Integer i = uew Integer(1) + new Integer(2); 13. switch(i) { 14. case 3: System.out.println(”three”); break; 15. default: System.out.println(”other”); break; 16. } 17. } ‘What is the result? 1 three 2 other 3 An exception is thrown at runtime. 4 Compilation fails because of an error on line 12.  2
How to prevent a field from serialization ?  2
Name the package that always imported by default?  2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com