Local Primitives

Local Primitives

Local Primitive is basically for the time travel simulator,We have code in which year is a integer which is signifies as an automatic variable because it is with in the curly braces of a method.

public class TimeTravel {
public static void main(String [] args) {
int year = 2050;
System.out.println(\"The year is \" + year);

Date:2024-02-09 00:00:00

Post Your Answers

User Email:

User Name:

Related SCJP1.5 chap1 Links

SCJP1.5 chap1 interview questions and answers for experienced and fresher