60 likes | 104 Views
This is the apt course for freshers. By learning this you can placed in mnc. In our institution we are providing the course with placement guidance. So join here and get placed.
E N D
How to start a new java program? class Simple{ publicstaticvoid main(String args[]){ System.out.println("Hello Java"); } } This is the simple program for java.. The class must be user defined.
Methods of java Non Static method class Test { public void display() { System.out.println("I'm non-static method"); } public static void main(String agrs[]) { Test obj=new Test(); obj.display(); } }
Static method class StaticDemo{ public static void copyArg(String str1, String str2) { //copies argument 2 to arg1 str2 = str1; System.out.println("First String arg is: "+str1); System.out.println("Second String arg is: "+str2); } public static void main(String agrs[]) { //StaticDemo.copyArg("XYZ", "ABC"); copyArg("XYZ", "ABC"); } }
Benefits of learning java in TIS Academy • Java is a set of computer software and specifications developed by Sun Microsystems, which was later acquired by the Oracle Corporation, that provides a system for developing application software and deploying it in a cross-platform computing environment. • Java training in chennaiis the apt course for freshers. • By learning java training in chennaiyou can placed in mnc. In our institution we are providing the course with placement guidance. So join here and get placed.