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