473,405 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

System.out.println()---in this printing statement why we use (.)i.e dot inbetween ?

anu401
9
System.out.println()---in this printing statement why we use (.)i.e dot inbetween system.out and out.println?
please reply
this question was asked in viva session
Nov 29 '09 #1
3 2334
sukatoa
539 512MB
System is a class,

when putting a dot after the System, i means to say if the System class has a static field or method, you may use it through System."static_field/method"

The System has a PrintStream called out, it is public so it can be invoked.

So,

System.out = PrintStream instance

By looking to PrintStream class

there's a public static method named println

when you call that method(with parameters), it will just simply print the parameter into stream(@console)
Nov 29 '09 #2
sukatoa
539 512MB
Similar to that is

PrintStream ps = new PrintStream(System.out);
ps.println("Welcome to the world of ideas");
Nov 29 '09 #3
anu401
9
thank you for your answer sir/madam
Nov 30 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: RBisch | last post by:
I am finding that some of the properties off of the PrinterSettings object are misleading For example, When I test the CanDuplex on a printer I know duplexes, the property is false. Another one...
0
by: dchu | last post by:
Hi, Any idea on how to set duplex mode, I am using web browser control to print html document and send directly to default printer.
0
by: newsfan | last post by:
Hello there, I am using the System.Drawing.Printing namespace in order to get a document printed. My example works just fine when it has to print on my HP PSC 1350, but when I try to print out on...
3
by: moko | last post by:
Can the System.Drawing.Print namespace (and it's print methods) be used in ASP.NET ? Can we direct an output to a printer using these classes ? If not, what is the alternative ?
1
by: angus | last post by:
Dear All, I knew that if i want to make some printout in window form, i can use "System.Drawing.Printing" namespace. Is it possible to use this namespace in web form in asp.net? Thank you ...
0
by: Willem | last post by:
Hi, I'm using System.Drawing.Printing to print some simple information. Private WithEvents mDoc As New PrintDocument The click event on a button has the mDoc.Print()
1
by: Fred Nelson | last post by:
I'm a newby and I'm writing my first VB.NET print program! I need to change the default left and right margins for my printed output "e" is my "System.Drawing.Printing.PrintPageEventArgs By...
6
by: Bill | last post by:
Hi I am trying to get my listbox items to print if they stream past the one page mark. my code is working for one page of information (if the e.hasmorepages) is not there. But I am having...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.