what is the Diff. between Access Specifiers and Access
Modifiers?
Answer Posted / filistin
Access Specifiers
They are used to set the visibility of a
class or variable or a method.
ex:public,private,protected and default.
Access Modifiers
They are used to optionally declare a
field.
ex:abstract,native,transient,final,static and volatile.
| Is This Answer Correct ? | 11 Yes | 22 No |
Post New Answer View All Answers
What do you mean by platform independence?
What is the difference between choice and list?
When throw keyword is used?
What is unicode full form?
Why multiple inheritance is not supported by java?
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.
What is bubble sort in java?
What is hash code collision?
When should I use singleton pattern?
What is data type in java?
What is a generic data type?
What is the benefit of singleton pattern?
Can we make constructors static?
Can a static class have a constructor java?
Can you make a constructor final in Java?