0% found this document useful (0 votes)
15 views1 page

Java Core Concepts Overview

Uploaded by

gunjan Sathawane
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Java Core Concepts Overview

Uploaded by

gunjan Sathawane
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Java Notes - Part 2: Core Concepts

Arrays & Strings


int[] nums = {1,2,3};
String name = "Java";
Methods & Parameters
int add(int a, int b) { return a+b; }
Packages & Import
import [Link];
Constructors
class Student {
Student() { [Link]("Constructor called"); }
}
Static & Final Keywords
- static: belongs to class, not object
- final: constant, cannot be changed
Wrapper Classes
Integer num = [Link](10);

You might also like