Android Studio Guide

How To Create New Java Class in Android Studio

A Class consists of a set of objects that share a common Structure and behavior in JAVA. Below are the steps to create new JAVA class in Android Studio.

Related: Class And Objects In JAVA


How To Create New Java Class in Android Studio:

Step 1:  Firstly, Select app > Java > package > Right Click on package. After that Click on New > Java Class. Remember to choose your package in which you want to create new class.

Create New Java Class in android studio
Step 2: After that Enter Class name and Click on OK. Here we create Class Animal as shown in figure below.

Enter Class name
Step 3: New Java Class will be created in your Android project.

Java Class Output

DOWNLOAD THIS FREE eBook!

This free eBook will help you master the learning of Android App Development in Android Studio!

Download Free - Master Android App Development Sidebar

DOWNLOAD THIS FREE eBook!

This free eBook will help you master the learning of Android App Development in Android Studio!
close-link

Android Developer Facebook Group Free

Premium Free Project Source Code:

DOWNLOAD THIS FREE eBook!

This free eBook will help you master the learning of Android App Development in Android Studio!
close-link

See How AbhiAndroid Step By Step Video Training Helps You Master Android App Development

Video Training - Unlock step by step video training with new content added regularly. Develop Android Apps.
Android App Source Code - Get amazing Ecommerce, Food Ordering and Ultimate WebView source code with documentation.
close-link