Java - ilya-khadykin/notes-outdated GitHub Wiki
TO DO:
Topics:
- Java Overview
- Java Versions
- Programming in Java: Basic Concepts
- Basics of OOP in Java
- Basics of Java Syntax
- Handling Exceptions in Java
- Java IO Libraries
- Java Style Guidelines
- Primitive data types in Java
- Reference types in Java
- Type Conversion in Java
- How To Develop A Class in Java
- Java library
Code Review:
Practical examples:
- Groovy
Most mature and easiest for Java developers to learn - Scala
Statically typed with immutables; a good transitional language from OOP to functional programming - Clojure
Lisp on the JVM; pure functional language with immutables - JRuby
Compiles Ruby - Jython
Compiles Python
- Ant -
build.xml
- Gradle -
build.gradle
-
Maven -
pom.xml
./gradlew
./gradlew clean build
echo -n | openssl s_client -connect example.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/examplecert.crt
openssl x509 -in /tmp/examplecert.crt -text
sudo keytool -import -trustcacerts -keystore /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts -storepass changeit -noprompt -alias mycert -file /tmp/examplecert.crt
Find out about dependencies for compiled classes:
javap ClassName
Execute compiled Groovy classes:
java -cp $GROOVY_HOME/embeddable/groovy-all-2.4.7.jar:. class_name # unix
or
java -cp %GROOVY_HOME%\embeddable\groovy-all-2.4.7.jar:. class_name # windows