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


Please Help Members By Posting Answers For Below Questions

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.

1590


What does java se mean?

591


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

839


Is alive method in java?

507


What is lambda programming?

496






Can singleton class be cloned?

563


Which is better arraylist or vector?

573


What does substring mean?

513


What is singleton pattern?

555


What is parsing and its types?

588


hr interview how many minutes asking question

1567


Why singleton pattern is better than creating singleton class with static instance?

537


What is high level language in computer?

541


What are the advantages of passing this into a method instead of the current class object itself?

1171


What do you understand by final value?

588