Workshop conducted on 25th January 2018
Check if you already have java installed by opening your terminal, and firing the following command
javac -version
For linux user, it is recommended to install the open-source version of java openjdk
,
To install open-jdk
, fire the following command,
sudo apt-get install openjdk-8-jdk
Head on to Oracle's website, and download the Windows
Package for your architecture.
- To run your Java program, make sure that the parent class has the same name as that of the file. e.g. If
Class Hello
is your parent class, make sure you name your fileHello.java
- Compile the
.java
file by firing command,javac Hello.java
, this will output you a.class
file of the same name, i.e., for our case, Java-Compiler will generateHello.class
- To run the code, fire the command,
java Hello
. Remember to exclude.class
extention.
- Introduction to OOP and Java Basics, Running Java program, Java Data types and operators, Control structures
- Arrays and Loops, functions in JAVA, Classes and Objects, Constructor
- Encapsulation in JAVA, Access modifiers , this, super and static
- Methods Overiding, Overloading, Abstract Class And Methods
- Interfaces, Packages and Access Control, Exceptions
- Multithreaded Programming