Java OOPs Concepts -Android training in Chandigarh

Object Oriented Programming – Java OOPs Concepts With Android training in Chandigarh

Object Oriented Programming of Java

Android training in Chandigarh is here to give the information about Java Concept of object oriented programming. It is the method of designing software in which the entire software design is distributed in the object and class, while the complete software programming schedule is distributed in C programming.

The design of structural programming is a great program that has thousands of line codes, the design programming language of the structure is perfect, because there are many functions present in the function.  A mistake, find that is the mistake and it is very difficult to fix the mistake, due to which the use of object-oriented programming  is very large Because regardless of how big the program is, the whole program is divided into class and object and the class and with the help of the object, the same code can be used repeatedly and even if there is a mistake, the problem can be solved by correcting the same class code only in the class that has been faulted.

It has two advantages: First of all, the same code can be used repeatedly with the help of class and object, which reduces the size of the program and secondly it becomes very easy to find mistakes in the program. This is because the class which has made a mistake can only correct the mistake of that class and free the whole program from the mistakes.

Apart from this, the object-oriented programming is divided into classes and objects, reducing the complexity of the code, which makes it easy to understand and read object-oriented programming.

In above, Android training in Chandigarh have give you introduction of java object oriented language and now android developer given the detail of Java OOPS concepts. Java also follows all object oriented technologies like object oriented principles. Let's try to know about these principles.
android training in chandigarh



Encapsulation is also called data hiding. In Encapsulation, you declare private variables and they access through public methods, your variables can access methods of your own class. No other class can access your variables. Thus, you also hide data and also use it.

Another means of encapsulation is to bind the data and code into one unit and prevent access from the outside. your such variables and methods are binded in the same unit. Java provides 3 levels of data hiding.
  • public - Your public class members can access other classes.
  • private - Your private class members can not access any other class.
  • protected - Only class to inherit your class can access your class members.


Through this principle, you can access the variables of a class in the second class. Doing so does not require you to write the same methods repeatedly. This eliminates computer's memory and programmer's time both. Multiple inheritance is not allowed in Java. A class can inherit only one class. This reduces through java interfaces.



Polymorphism is the word taken from the Greek language in which poly means many and morphism means forms. Through polymorphism you can take one according to the different actions according to the situation from an interface. It is a concept in which we can do the same work in two different ways.
  • Compile-time polymorphism(static polymorphism)
  • Run-time polymorphism(Dynamic polymorphism)


Abstraction is a very important concept of java. In which the concept of abstraction, You do not show your software's internal working user. Just provide the interface to the user so that they will interact.

Learn more about android, Java and many programming languages then join android training in Chandigarh from Cbitss technologies Sector 34A

Android Oreo : Android Training in Chandigarh

Google disclose Android Oreo, its next
 operating system for mobile : Android 
Training in Chandigarh

Android training institute in Chandigarh

Following quite a while of testing, Google has disclosed the last form of its next working framework
 for versatile and tablet gadgets. In doing as such, the firm has unveiled the last name
 for the OS: Android Oreo. The uncover of the full form takes after the Google code being called
 Android O for a while. Google initially discharged the main engineer review of Oreo on May
17 and has since been working with application makers to refine the framework.

What is Android Oreo?

The product is the freshest rendition of the Android working framework that keeps running on
 the two tablets and telephones. Oreo takes after Android Nougat, which was discharged in
 2016. From that point forward it has just stretched around 10% of all Android telephones.

Why's it called Oreo?

Android has gotten into the tradition of naming its OS' in sequential request, and for the most 
part after pastries. There's been Jelly Bean, Kitkat, Lollipop, Marshmallow and Nougat.

At the point when will it be discharged?

The primary variant of Oreo was discharged to designers in March. From today the sources
 to Android Open Source Project have been discharged to everybody and Google says
 its Pixel telephone and Nexus 5X/6P have entered bearer testing. It hopes to begin 
discharging the last form in stages "soon". Gadgets running the Android Beta Program will
 likewise get the last form soon.

Android Oreo highlights

Moment Apps

Android's form of Instant Apps enable clients to get to applications without downloading 
them. The designer site says applications can be access through URLs and there's no 
compelling reason to introduce the full forms of an application.

Battery life

"Expanding on the work we started in Nougat, Android Oreo puts a major need on enhancing
 a client's battery life and the gadget's intuitive execution," Android says on its
 designer blog.

To attempt to enhance to what extent a telephone remains alive, Android Oreo will naturally 
restrict what an application can do when it is open out of sight. This will prevent an
 application from always utilizing information when it isn't the primary application that is being
 utilized. Google says points of confinement will center around applications 
broadcasting out of sight, administrations, and area refreshes.

The blog entry says: "These progressions will make it less demanding to make applications
 that have insignificant effect on a client's gadget and battery".

Notice control


Pop-up messages come in numerous structures: Facebook messages, messages,
 FitBit updates are only some of them. It's conceivable to suffocate in cautions that may 
not be needed around then or are immaterial. Android Oreo is attempting to change 
this with 'notice channels'.

The new channels will enable engineers to make a 'bound together framework' to let telephone
 clients deal with the warnings they see.For the working structure, it will be 
possible to set cautioning needs and hugeness levels through an entire channel.

"For instance, you may setup isolate warning channels for every discussion gather made by 
a client in an informing application," Android says of the element. It will likewise 
be workable for a telephone to utilize a similar interface to oversee notice settings.


Like Chrome and other real programs, it will now be workable for Android gadgets to autofill 
content into shapes. Through new autofill APIs for engineers, those utilizing 
telephones will have the capacity to "select an autofill application, like the way they select
 a console application".


While multitasking on a gadget or tablet the new Android Oreo will make it conceivable to 
see recordings in a Picture in Picture (PiP) mode. This implies you won't need
 to quit watching Netflix to send an essential email.

Sound upgrades and associations

Android Oreo is acquainting new Bluetooth sound codecs with empower interfacing and
 gushing to remote sound gadgets at a higher quality.

To enhance the Bluetooth network, Android says Sony helped it with in excess of 30 include

The new working framework is additionally including Wi-Fi Aware, to enable equipment with 
the product to interface with different gadgets without the requirement for
 availability between them through a Wi-Fi get to point.

Changing symbols

Over the Android environment, there are an assortment of gadget makers. Google delivers
its own telephones yet those from LG, Sony, HTC and numerous more keep 
running on renditions of the Android working framework.

Every Android device is fairly one of a kind and the firm is changing how an application's image 
can appear on different devices."Android Oreo presents versatile launcher
 symbols, which can show an assortment of shapes crosswise over various gadget models,
" it says in a blog entry. This implies on a telephone, an application can have
 a roundabout symbol on the home screen and on another telephone, it might be a square.

To Learn More visit @ Android Training in Chandigarh

How to make an android app : Android training in Chandigarh

How to make an android application ?

android training in chandigarh  

Step by step instructions to Create an Android App With Android Studio

Stage 1: Install Android Studio

Go to to download Android Studio.

Utilize the installer to introduce Android Studio following its guidelines.

Stage 2: Open a New Project

2 More Images

Open Android Studio.

Under the "Brisk Start" menu, select "Begin another Android Studio venture."

On the "Make New Project" window that opens, name your task "HelloWorld".

On the off chance that you set, the organization name as desired*.

Note where the undertaking record area is and transform it if wanted.

Snap "Next."

Ensure on that "Telephone and Tablet" is the main box that is checked.

In the event that you are intending to test the application on your telephone, ensure the base SDK is beneath your telephone's working framework level.

Snap "Next."

Select "Clear Activity."

Snap "Next."

Leave the greater part of the Activity name fields as they seem to be.

Snap "Wrap up."

*Note: It is commonplace naming tradition in Android tasks to set the organization name as some type of "".

Stage 3: Edit the Welcome Message in the Main Activity

Explore to the activity_main.xml tab on the off chance that it isn't as of now open.

Ensure that the Design tab is open on the activity_main.xml show.

Snap and drag the "Welcome, world!" from the upper left corner of the telephone show to the focal point of the screen.

In the task document framework on the left half of the window, open the qualities envelope.

In the qualities organizer, double tap the strings.xml document.

In this document, discover the line "Hi world!".

After the "Welcome world!" message, include "Welcome to my application!"

Explore back to the activity_main.xml tab.

Ensure that your focused content currently peruses "Hi world! Welcome to my application!"

Stage 4: Add a Button to the Main Activity

Explore to the Design tab of the activity_main.xml show.

In the Palette menu to one side of the telephone show, discover Button (under the heading Widgets).

Snap and drag Button to be focused underneath your appreciated message.

Ensure your catch is as yet chosen.

In the Properties menu (on the correct side of the window), look down to discover the field for "content."

Change the content from "New Button" to "Next Page."

Stage 5: Create a Second Activity

At the highest point of the task's document framework tree, right tap on "application."

Explore through to New > Activity > Blank Activity.

Change the name of this action to "SecondActivity".

Snap "Wrap up."

Ensure you are in the Design perspective of activity_second.xml.

Drag the content box in the upper left of the telephone show down to the middle as you did on the Main Activity.

With the content box still chosen, discover the "id" field in the Properties menu on the right, and set it to "text2".

Open strings.xml once more.

Include another line under "Hi world! Welcome to my application!" that peruses "Welcome to the second page!".

Explore back to activity_second.xml.

Select the content box once more.

In the Properties sheet, set the "content" field to "@string/second_page".

Ensure that the content box currently peruses "Welcome to the second page!" and is in the focal point of the screen in the telephone show.

Stage 6: Write the Button's "onClick" Method

Select the tab along the highest point of the workplace.

2. Include the accompanying lines of code toward the finish of the onCreate strategy:

Catch = (Button) findViewById(;

button.setOnClickListener(new View.onClickListener() {


open void onClick(View v) {




3. Add the accompanying strategy to the base of the MainActivity class:

private void goToSecondActivity() {

Purpose plan = new Intent(this, SecondActivity.class);



4. Tap the + beside import at the third line of to extend the import proclamations.

5. Add the accompanying to the finish of the import articulations in the event that they are not as of now there:

import android.content.Intent;

import android.view.View;

import android.widget.TextView;

Stage 7: Test the Application

Tap the green play image from the toolbar at the highest point of the Android Studio window.

At the point when the "Pick Device" exchange apperas (this may take a couple of minutes), select the "Lauch emulator" alternative.

Snap OK.

At the point when the emulator opens (this also could take for a short time), the application will naturally dispatch the application upon the virtual telephone being opened.

Ensure that the majority of your content shows accurately and that the catch takes you to the following page.

Stage 8: Up, Up, and Away!

Well done! You've now finished your first Android application with some essential usefulness. Your completed application ought to have a page welcoming the client and a catch that takes the client to a moment page.

From here you have the careless information you have to go ahead to take in everything to think about Android application improvement.

What is Google doing to reduce fragmentation in Android : Android Training in Chandigarh

What is Google doing to reduce fragmentation in


Android Training in Chandigarh 
As indicated by Google's information, the greater part of the general population utilize a variant of Android 
propelled two years prior,

Nougat is on the highest priority on the rundown with 31% of dynamic Android gadgets; trailed by
 Marshmallow with 26%. Oreo, then again, is just utilized by 4.6%, whatever remains of gadgets 
are running even more seasoned Android renditions.

The most recent Android form offers a great deal of new astounding stuff for clients. Oreo is a quicker 
and all the more capable variant with autofill, picture-in-picture and point of confinement foundation 
highlights, to give some examples. Be that as it may, it is additionally obvious not every person can 
move up to most up to date forms or purchase the most recent lead gadget.

What is the issue with fracture?

Fracture is viewed as an issue for designers mostly for two reasons: It makes more hard to promote 
new versatile advancements on the grounds that tone a couple of clients can procure the most recent
 gadgets, and in light of the fact that the assortment of OS forms make it more hard to distinguish and 
settle security defects.

In any case, seen it in an unexpected way, in all actuality this reaction has been a piece of the 
establishment of Android as an open source venture and that is likewise what has made it the immense
 working framework that it is, expanding moderateness and openness to versatile innovation in less
 blessed nations.

Having included that last part, we do trust a few measures must be taken keeping in mind the end goal to 
decrease discontinuity issues, and Google has indicated needing to do as such.

What is Google doing about it?

One measure Google took keeping in mind the end goal to diminish moderate Android refreshes was
 the arrival of the Project Treble a year back. It was made to isolate the seller usage from the Android
 OS Framework by presenting another merchant interface.

Notwithstanding Project Treble is just focused at new gadgets propelled with Android O and past,
 this could be an extraordinary advance to unravel fracture in a not so distant future. Look at a rundown
 of Android gadgets refreshed with Project Treble help.

Furthermore, with a specific end goal to lessen hazards and abbreviate the innovation hole, Google 
made a declaration a couple of months prior: new applications (beginning august) and existing
 application refreshes (beginning november) must focus on a current Android API level.

This announcement implies creating applications with API level 26 or higher, relating to Android Oreo.
 In 2019, this change will keep progressing and expanding the API level appropriately to new OS 

Ideally, this dynamic change will give engineers time to prepare, at whatever point they have to include
 another refresh. Something else, If organizations or designers choose their applications needn't bother
 with any refresh, this new control won't influence them.

Ultimately, there are additionally different sorts of activities that try to give the most ideal Android encounter for all kind of clients around the globe. Android Go and Android One can expand the quantity of gadgets running with the most recent variants of Android, additionally adding to decrease discontinuity.


As should be obvious, Google knows about the issue discontinuity speaks to and is battling against it, 
despite the fact that it'll likely take a few years to decrease the very nearly 95% of clients utilizing an old 
working framework.

The methodology of limiting the API level may appear to be cunning, be that as it may, a few people may
 take it distrustfully, considering the opportunity gave by the organization since the start.

Things being what they are, What do you think about Google's methodologies to battle fracture? Do you
 truly accept is a major issue?