Introduction to Java

class HelloWorld { //attributes and behaviours }
class Car extends Vehicle { // generic attributes and behaviours }
class Maruti extends Car { // specific attributes and behaviours }
package vehicle;
public class Car { }
package anotherPackage;
import vehicle;
public class Owner { Car car; }
public class HelloWorld { 
public static void main(String[] args) {
// program execution starts here
}
}
// single-line comment/* 
multi-line comment
*/
/**
* documentation comment {@code Whatever} * @version 1.0
* @author oracle
*/

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

My Primary Coding Tools

More about databases

5 Mental Shifts That Helped Me Build a 6-Figure Online Business in My 20s

Finally Learning a NoSQL Database(If you dont count mongoDB)[Elasticsearch Part One]

GraphQL Heroes: Martijn Walraven

Agile for Bulma

Making long running sitemap generation kubernetes-friendly using k8s-api and Minio

Kids can build macOS apps, too!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Semih Kırdinli

Semih Kırdinli

More from Medium

Java Variables

Java Programs

GoF Design Patterns in Java- Creational

Abstraction in Object-Oriented Programming- Explained using Java