Difference between a MenuItem and a CheckboxMenuItem?
Answer / satheesh kannan
MenuItem is associated with a single event where as
CheckBoxMenuItem is associated with two events(it is having
a toggle state-enable/disable)
File->open is best example of menu item , it opens a "open
dialog" box when we click this is taken as a single event,
View-->status bar is a checkboxmenuitems, which has two
states, If it "on", the status bar gets displayed in IE,if
we click it again its gets "Off", the status bar is hidden.
(similar to a checkbox)
Is This Answer Correct ? | 4 Yes | 0 No |
Which of these methods belong to Thread & Object class? join, yield, sleep, wait, notify
How will you convert an ArrayList to Arrays?
Explain about core java?
What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }
Can singleton class be serialized?
Why put method is used?
What is collections framework?
What all access modifiers are allowed for top class ?
What are constants?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
Explain when classnotfoundexception will be raised ?
How do you use nextline in java?