0% found this document useful (0 votes)
10 views7 pages

Web Storm Java CheatSheet

This document is a Java CheatSheet that provides a concise overview of Java data types, string methods, operators, array and collection methods, file and exception handling, OOP basics, built-in methods, keywords, and streams. It includes essential syntax and functions for each category, making it a quick reference for Java programming. Additionally, it encourages users to comment for a PDF version of the cheatsheet.

Uploaded by

surajmhetre972
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)
10 views7 pages

Web Storm Java CheatSheet

This document is a Java CheatSheet that provides a concise overview of Java data types, string methods, operators, array and collection methods, file and exception handling, OOP basics, built-in methods, keywords, and streams. It includes essential syntax and functions for each category, making it a quick reference for Java programming. Additionally, it encourages users to comment for a PDF version of the cheatsheet.

Uploaded by

surajmhetre972
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

Swipe

Java
CheatSheet

webstrom_tech
01

Data Types String Methods


Primitive .length()
int, float, double, char, .charAt()
boolean, byte, short, .substring()
long .equals()
.equalsIgnoreCase()
Non-Primitive
.toUpperCase()
String, Array, Class
.toLowerCase()
.trim()
Operators .replace()
.split()
Arithmetic : +, -, *, /, %
Relational : ==, !=, >, <,
>=, <=
Array Methods
Logical : &&, ||, ! int[] array = new
Bitwise : &, |, ^, ~, <<, >> int[size]
Assignment : =, +=, -=, *=, [Link]
/=, %=
Unary : ++, --

Comment “PDF” to get this Cheatsheet PDF

webstrom_tech
02

ArrayList Methods Date & Time


.add() LocalDate
.remove() LocalTime
.get() LocalDateTime
.set() DateTimeFormatter
.size() .now()
.clear() .parse()
.contains() .format()
.isEmpty()

HashMap Methods
.put()
.get()
.remove()
.containsKey()
.containsValue()
.keySet()
.values()
.size()

webstrom_tech
03

File Handling Exception Handling


File try, catch, finally
FileReader throw
FileWriter throws
BufferedReader Exception
BufferedWriter IOException
.read() NullPointerException
.write() ArithmeticException
.close()
.exists()
.delete()
OOP Basics
class extends
public, private, implements
protected interface
static abstract
void super
this final

webstrom_tech
04

Built-in Methods Java Collections


Framework
[Link](), [Link]()
[Link]() List
[Link]() ArrayList
[Link]() LinkedList
[Link]() Set
[Link]() HashSet
[Link](), [Link]() LinkedHashSet
TreeSet
Map
Threads
HashMap
Thread LinkedHashMap
Runnable TreeMap
.start()
.run() Annotations
.sleep()
@Override
.join()
@Deprecated
.interrupt()
@SuppressWarnings

webstrom_tech
05

Java Keywords Streams


public, protected, .stream()
private .filter()
class, interface, enum .map()
static, final .collect()
void, return .forEach()
extends, implements .reduce()
this, super
new, import, package
break, continue

Comment “PDF” to get this Cheatsheet PDF

webstrom_tech
Was this post helpful ?

Follow For More


Link In Bio

You might also like