Skip to content

Instantly share code, notes, and snippets.

View argonlaser's full-sized avatar

Venkata Krishna.S argonlaser

View GitHub Profile
@argonlaser
argonlaser / norms
Last active February 7, 2018 13:58
Must know Java norms
Reflection
Serialization/ deserialisation
Clonable
Multi threaded
Class loading
Garbage collection
String pool/ Intern - caching string literal in string pool and point to same reference
double check locking in singleton
immutable - state of the object never changes [String never gets modified]
OCP(class open to changes and close to modifications)
@argonlaser
argonlaser / PrintVar.java
Last active February 6, 2018 06:02
Syscalls for a java program
public class PrintVar {
public static void main( String[] args ) {
int x = 1;
System.out.println("value of x is " + x);
}
}
@argonlaser
argonlaser / printvar.c
Last active February 6, 2018 06:03
Syscalls for a simple C program
#include <stdio.h>
int main() {
int x = 1;
printf("value of x is %d\n", x);
return 0;
}