AGENGA:
- Một vài lưu ý chung
- Ôn tập kiến thức JS/ReactJS
- Cày thuật toán, giải thuật
- Tìm hiểu về công ty mà mình xin ứng tuyển
| package packt.j9fprog.genericMethods; | |
| import java.util.List; | |
| public class GenPair<K,V> { | |
| private final K left; | |
| private final V right; | |
| public GenPair(K left, V right) { | |
| this.left = left; | |
| this.right = right; |
A curated list of lists of technical interview questions.
What makes for an awesome list?
Please read the contribution guidelines or the creating a list guide if you want to contribute.
| package com.example.csv; | |
| import com.opencsv.bean.ConverterDate; | |
| import com.opencsv.exceptions.CsvDataTypeMismatchException; | |
| import java.lang.reflect.InvocationTargetException; | |
| import java.time.LocalDate; | |
| import java.time.LocalTime; | |
| import java.time.format.DateTimeFormatter; | |
| import java.time.temporal.Temporal; | |
| import java.util.Locale; |
| List<String> strings = new ArrayList<>(); | |
| strings.add("Hello"); | |
| strings.add("World"); | |
| // strings.add(new Date()); #1 | |
| // Integer i = strings.get(0); #1 | |
| for (String s : strings) { //#2 | |
| System.out.printf("%s has length %d%n", s, s.length()); | |
| } | |
| // 1 - won't comile | |
| // 2 - for-each loop knows the contained data type is String |
First of all, please note that token expiration and revoking are two different things.
A JWT token that never expires is dangerous if the token is stolen then someone can always access the user's data.
Quoted from JWT RFC: