UrbanPro

Learn Java Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Is it possible to instantiate the abstract class?

Asked by Last Modified  

31 Answers

Learn Java

Follow 2
Answer

Please enter your answer

Java, Angular Trainer with 22 years of IT experience

Use anonymous class. Example: For an abstract class AbstrClass. AbstrClass ac = new AbstrClass() { public void m1() { // code of abstract method m1. } } ;
Comments

IT Professional Trainer with 13 years of experience in IT industry + Academics

You cannot directly create the object of an abstract class... But you can create object reference of the abstract class
Comments

Experienced Java Professional

Abstract classes cannot be instantiated - this is by definition and design. From the JLS, Chapter 8. Classes: A named class may be declared abstract (§8.1.1.1) and must be declared abstract if it is incompletely implemented; such a class cannot be instantiated, but can be extended by subclasses.
Comments

Computer Classes

there is no possible to instantiate the abstract class
Comments

Expert in Java J2EE Training

No. 'Abstract' means incomplete. Abstract class is also an incomplete class. Only concrete classes can be instantiated.
Comments

Certified Hadoop Developer with Spark Expertise

We cant instantiate the abstract class. but one we can create the object for the abstract class. using giving dummy implementations for unimplemented methods.
Comments

7+ year of corporate Experience in Manual & Automation(Java + Selenium) Testing in IT industry

An abstract class is a class which have either an abstract method and a non-abstract method. When the method is abstract, then the class should be abstract. The abstract class have a constructor. An abstract class is an incomplete class. Hence we should extend to another class and provide body to unimplemented...
read more

An abstract class is a class which have either an abstract method and a non-abstract method.

When the method is abstract, then the class should be abstract. The abstract class have a constructor.

An abstract class is an incomplete class. Hence we should extend to another class and provide body to unimplemented methods.

read less
Comments

Trainer

No
Comments

Expert SDET

No. You cann't instantiate the abstract class
Comments

Senior Software Engineer

No, you are not creating the instance of your abstract class here. Rather you are creating an instance of an anonymous subclass of your abstract class. And then you are invoking the method on your abstract class reference pointing to subclass object.
Comments

View 29 more Answers

Related Questions

Tell me how to register for java training in summer in niit chandigarh.
Hello Sumit, Its nice to learn java based on your timings. We are providing real-time training to students from USA. Generally we used to start sessions at nights according to Indian timings, and it would...
Vishakha
How many years of experience should a good Java trainer need?
Minimum 4 years, actually it depends how much exposure you got and how you worked in project(s)
Nayan
0 0
5
What is selection sort in java?
Selection sort is a sorting algorithm. You can implement this algorithm in any language. The basic idea is to select the smallest element of the array and placing it to the head of array. This step needs...
Snehashis
Is it really needed to do Java training before graduation, to get a job?
Yes, It's must to get better opportunities and to standard alone in IT field. Not only core Java but also learn Spring,Hinernat ,Struts. ANGULARJS add an advantage to get job easily.
Udaybhan
how to run a java program
go to command prompt then write the following-- For compilation: javac filename.java then press enter For run: java classname then press enter
Prem Kumar Pathak

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Java Overview
Java platform overview Java platform components The Java platform consists of the following components. The Java language Like any programming language, the Java language has its own structure, syntax...
A

Akshay Shende

0 0
0

JAVA - Object Cloning
JAVA - Object Cloning Is the way of creating the same copy of object without calling the class constructor. It means we can make any class object multiple times without calling its default constructor....

Tips of learning Java Language/Other Programming Languages
1.You should know the basic concept: If we talk about programming languages so basic concept are same in all the high level languages. So you should know the basic concept firstly then you can easily understand...
I

ICreative Solution

0 0
0

What Is Applet & Its Life Cycle?
What is Applet & its life cycle?Applet is a Java programme that can be embedded into HTML page.Java Applet runs on the java enables web browsers such as Mozilla & Internet Explorer.Applets are...
I

ICreative Solution

0 0
0

Facebook Analytics
Assume how the Facebook application will store the millions of customer's record in real-time: facebook = { 'jose': { 'name': 'jose', 'age': 33, 'hobby': , # cricket,football 'mobile': 1111111111, 'email':...

Recommended Articles

Designed in a flexible and user-friendly demeanor, Java is the most commonly used programming language for the creation of web applications and platform. It allows developers to “write once, run anywhere” (WORA). It is general-purpose, a high-level programming language developed by Sun Microsystem. Initially known as an...

Read full article >

Before we start on the importance of learning JavaScript, let’s start with a short introduction on the topic. JavaScript is the most popular programming language in the world, precisely it is the language - for Computers, the Web, Servers, Smart Phone, Laptops, Mobiles, Tablets and more. And if you are a beginner or planning...

Read full article >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Java is the most famous programming language till date. 20 years is a big time for any programming language to survive and gain strength. Java has been proved to be one of the most reliable programming languages for networked computers. source:techcentral.com Java was developed to pertain over the Internet. Over...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for Java Training Classes?

The best tutors for Java Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Java Training with the Best Tutors

The best Tutors for Java Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more