explain System.out.println
Answer Posted / santosh singh
'System'is a class in it out is a field defined as static
so we can write System.out
out is object defined in PrintStream class in printstream
class tere is a method println()so we can call that method
by out.println()printstream class is defind in java.io
package so if we want to use it so we import java.io package
so it is better to cal system.out.println()it give the same
result
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
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 does java se mean?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
Is alive method in java?
What is lambda programming?
Can singleton class be cloned?
Which is better arraylist or vector?
What does substring mean?
What is singleton pattern?
What is parsing and its types?
hr interview how many minutes asking question
Why singleton pattern is better than creating singleton class with static instance?
What is high level language in computer?
What are the advantages of passing this into a method instead of the current class object itself?
What do you understand by final value?