Skip to content

Latest commit

 

History

History
41 lines (23 loc) · 1.71 KB

README.md

File metadata and controls

41 lines (23 loc) · 1.71 KB

Core Java Programming

Workshop conducted on 25th January 2018

Installation Instruction

Check if you already have java installed by opening your terminal, and firing the following command

javac -version

Installation for Linux Users

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

Installation for Windows Users

Head on to Oracle's website, and download the Windows Package for your architecture.

Running your Java program

  1. 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 file Hello.java
  2. 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 generate Hello.class
  3. To run the code, fire the command, java Hello. Remember to exclude .class extention.

Topics covered in Workshop

  1. Introduction to OOP and Java Basics, Running Java program, Java Data types and operators, Control structures
  2. Arrays and Loops, functions in JAVA, Classes and Objects, Constructor
  3. Encapsulation in JAVA, Access modifiers , this, super and static
  4. Methods Overiding, Overloading, Abstract Class And Methods
  5. Interfaces, Packages and Access Control, Exceptions
  6. Multithreaded Programming