Cracking Java Interview

A list of frequently asked Java questions

  • Overriding vs overloading

    Overriding happens at subclass while overloading happens in the same class. Also, overriding is a runtime activity while overloading is resolved at compile time.

  • Difference between Hashtable and Hashmap, ArrayList and Vector

    Synchronized or not.

  • Thread-safe and synchronization

Machine-Learning-for-Game-TechStack

  • Skymind.ai

  • Keras

  • blueberrymusic

  • Deep Learning, Vol. 1: From Basics to Practice

Reform on course taking

  • Withdraw a course if workload is too heavy.

  • Auditory sense stimulates comprehension when learning for first time. Multimedia records and replays are required.

  • Paper-based books and notes may fit for efficient reviewing. Notes on screens are not yet quite suitable for looking over. Textbooks appear to be loquacious at first glance, but include meaningful extensions.

JDK for macOS

You need the following to distinguish between built-in and user installed versions of JDK.

/usr/libexec/java_home -verbose

Various React components

  • Stateless components - purely functional

    No need to implement constructor then.

Insights into DNS

  • DNS cannot mapping to subfolders

    DNS can only map to an host/IP address, but not path / port.

    What you ask for requires URL forwarding/redirecting, and is not about DNS records.

    You will need a web server to redirect by HTTP 301.

Miscellanies about React Native

  • If /android or /ios is missing under project volume:

    1
    2
    react-native upgrade # optional
    react-native eject
  • react-native run-ios: xcrun: error: unable to find utility “instruments”, not a developer tool or in PATH
    error Command failed: xcrun instruments -s
    xcrun: error: unable to find utility “instruments”, not a developer tool or in PATH

https://stackoverflow.com/questions/42506068/how-can-i-regenerate-ios-folder-in-react-native-project

Good to know about ReactJS

  • Declarative

  • Component-based

    encapsulate behaviors into small units called Components
    Components are made of elements.
    Components enable us to break down the entire UI in to smaller reusable pieces.
    can have private states to control.
    Only class components can store states.

  • Component Methods

  • Component State and Lifecycle

  • Element

    smallest building blocks is elements.

  • Basic structure for a component

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    import React, { Component } from 'react';

    class Menu extends Component {
    constructor(props) {
    super(props);
    // Need to supply this props to the super class
    }
    render(){
    return(
    // the view for this component
    );
    }
    }
    export default Menu;
    //need to import this component for wherever we use
  • Every parameter pass to the component is under props.

  • If one component export the default one, there is no need to enclose import component name with braces, otherwise error occurs.

  • JSX: wrapped React Component expression

  • Handling events like handling DOM elements

Good to know about Bootstrap

  • Container

    Whatever is enclosed inside <div class="container"></div> will be restricted to the same width as the rest of the Web page.

  • Material Design

    Indeed, If you have interest where I found this colors you can visit www.android.com and then look up their documentation for material design and there, they have suggestions for how colors can be used in your Android application but the same thing applies even to a website.

  • Column classes

    • col, col-x, col-auto
    • col-xx-x
    • order-xx-first/last
    • offset-xx-x
  • Button class btn-block