explain System.out.println
Answer Posted / k.venu
System is a built-in class present in java.lang package.
This class has a final modifier, which means that it cannot
be inherited by other classes.
It contains pre-defined methods and fields, which provides
facilities like standard input, output, etc.
out is a static final field (ie, variable)in System class
which is of the type PrintStream (a built-in class,
contains methods to print the different data values).
static fields and methods must be accessed by using the
class name, so ( System.out ).
out here denotes the reference variable of the type
PrintStream class.
println() is a public method in PrintStream class to print
the data values.
Hence to access a method in PrintStream class, we use
out.println() (as non static methods and fields can only be
accessed by using the refrence varialble)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a final variable be initialized in constructor?
Have you ever used hashtable and dictionary?
What are void methods?
What package is math in java?
Write a program in java to establish a connection between client and server?
Is there any way to find whether software installed in the
system is registered by just providing the .exe file?
I have tried the following code but its just displaying the
directory structure in the registry.
Here the code :
package com.msi.intaller;
import java.util.Iterator;
import ca.beq.util.win32.registry.RegistryKey;
import ca.beq.util.win32.registry.RootKey;
public class RegistryFinder {
public static void main(String... args) throws Exception
{
RegistryKey.initialize(RegistryFinder.class.getResource("jRe
gistryKey.dll").getFile());
RegistryKey key = new RegistryKey(RootKey.HKLM,
"Software\\ODBC");
for (Iterator
Is null == null in java?
What is public/private protected in java?
What are disadvantages of java?
What is the concept of multithreading?
Is it safe to install java on my computer?
Explain the use of volatile field modifier?
Is a boolean 1 bit?
What is ctrl m character?
explain copyonwritearraylist and when do we use copyonwritearraylist?