Posts

Showing posts from November, 2019

Java Notes bca 4th sem

Image
Understanding first Java Program: First program in java:- Class simple { public static void main (String args[]) { System.out.println("hello java"); } } Output Hello java Class:- It is a keyword that is used to declare class in java. Public:- It is a keyword that is an access modifier that declare the main method as unprotected and there for making it accessible to all other address. Static:- It is a keyword if we declare any method as static it is known as static method is that there is no need to create object to invoke the static method. The main method is executed by the JVM( Java virtual machine ). Void:-   It is a return type of the method between it does not return any value. Main:- It represents start up of the program. String [] args:- It is used for command line arguments. System.out.println ():- It is used to print statement. Way to write java program:- ·        By changing sequence of modifier method prot