Write a javaprogram to calculate below things
static method:
System.out.println(1 + 3); System.out.println("1" + "3"); System.out.println(1 + "3"); System.out.println("1" + 3); System.out.println("1" + (1 + 3));
System.out.println(3 * 3 + 4 * 4); System.out.println(1 * 2 + 3 * 4);
nonstaticmethod2:
System.out.print("Diego"); System.out.print("Diego"); System.out.print("Diego");
System.out.println();
System.out.print("Diego "); System.out.println("is the best!"); System.out.print("Amigo "); System.out.println("is the best!");
static method:
System.out.println(1 + 3); System.out.println("1" + "3"); System.out.println(1 + "3"); System.out.println("1" + 3); System.out.println("1" + (1 + 3));
System.out.println(3 * 3 + 4 * 4); System.out.println(1 * 2 + 3 * 4);
nonstaticmethod2:
System.out.print("Diego"); System.out.print("Diego"); System.out.print("Diego");
System.out.println();
System.out.print("Diego "); System.out.println("is the best!"); System.out.print("Amigo "); System.out.println("is the best!");
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.