Pages

Friday 28 June 2013

what is system.out.println() in java language???

system.out.println():
                system is predefined class which is available in java.lang predefined package.
                                       out is a static reference varaiable of system class,which represnts the object of print stream class
println():
           println is a non static method which is present inside print stream class
printstream():
            printstream is a pre defined class which is available in java.io predefined package
  class system
  {
    static print stream out=new printstream();
     }

class printstream()                                            
{
   void println()
    {
       ------------
        --------------
     }
  void print()
{
  ------------
      -------------
}
void printf()
{
 --------------
----------------
}
}


WHAT IS JAVA? WHY JAVA PLATFORM INDEPENDENT???

WHAT IS JAVA:
           java is a object oriented,platform independent programming language from sun micro system which is released into the marked on the name of development of the distributed applications.
object oriented:
                 the languages which are implementing the OOPS principles are called as object oriented programming language(OOPL)
first known the platform
what is platform:
operating system+architecture of processor together is known as plotform
platform independent:
anything which is not specific to that platform is known as platform independent
the compile code of the any programmng language would be executed irrespectives of platform under
which has been developed then those programming language are called platorm independent.best example java language
HOW TO ACHIEVE TO PLATFORM INDEPENDENCY IN JAVA:
we can achieve the platform independency in java by using jvm.
what is JVM(java virtual machine):
jvm is a collection of programs.the functionality of the jvm is it will convert the byte code in the form of machine
understanle format
note:jvm is a platform dependent because jvm is specific to each and every os.