Answer Posted / ritesh pal
An accessor is a class operation that does not modify the state of an object. The accessor functions need to be declared as const operations
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between JVM and JRE?
What are the classes of java?
What is pangram in java?
What is anti pattern in cyber security?
What is the purpose of the strictfp keyword?
Do I need java for windows 10?
What is the file type?
What are the steps involved to create a bean?
Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.
Can we force garbage collector to run ?
How many bytes are there?
Tell some latest versions in JAVA related areas?
Can you have two constructors in java?
What is core java used for?
What are the 4 types of characters?