This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Will two objects with the same hashcode always be equal to each other? | |
A. Yes | |
B. No | |
C. Only when using inheritance | |
D. Two objects can never have the same hashcode | |
2. What does it mean to declare a private method as final? | |
A. It can only be called once. | |
B. It is called upon garbage collection | |
C. A subclass cannot override it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import HTTP Module | |
const http = require('http'); | |
const hostname = '127.0.0.1'; | |
const port = 3000; | |
// Create Server | |
const server = http.createServer((request, response) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Returns the number of arithmetic slices in | |
* the given number array. | |
* | |
* Examples: | |
* [-1, 1, 3, 3, 3, 2, 1, 0] = 5 | |
* | |
* A sequence is an Arithmetic if: | |
* 1. It consists of 3 elements | |
* 2. The difference between any two consecutive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.tutorialsdojo; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import java.sql.ResultSetMetaData; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The What, When and Why of GraphQL | |
In our previous lecture, we had a good introduction of what GraphQL is | |
by looking at the common issues of a RESTful API, and how GraphQL solves | |
and improves | |
Those certain issues. | |
This time, we will dive deeper on what GraphQL is, | |
the story on how it came to be |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Show all images | |
docker images -a | |
-- Show all containers | |
docker volume ls | |
-- Removes dangling/unused container | |
docker volume prune | |
-- Basically similar with (docker volume prune) command. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* https://www.bloomberg.com/markets/watchlist/recent-ticker/GOOG:US | |
* https://www.bloomberg.com/markets/chart/data/1D/GOOG:US | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
public class App { | |
public static void main( String[] args ) { | |
int[] inArray = {1, 3, 3, 5, 7}; | |
int baseNum = 6; | |
System.out.println("Number List: " + Arrays.toString(inArray) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* How to safely remove an element from a List using | |
* CopyOnWriteArrayList | |
* | |
* @author jonbonso | |
* @param args | |
*/ | |
public static void main( String[] args ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* filter() example of Java's Stream API | |
* | |
* | |
* How to get certain items from a collection using the filter() | |
* intermediate operation, and then show the result using the | |
* collect() terminal operation. | |
* | |
* @author jonbonso | |
* @param args |