Linked Questions

4 votes
6 answers
4k views

Can a Class be an Object in Java? I consider a Class to be a blueprint for creating new Objects, but at the same time classes can have static variables and static methods which are called without an ...
user avatar
0 votes
2 answers
8k views

Can anyone explain what is the difference between object vs instance vs reference, with a good example? I'm confused about this part: ( classA a; a = new classA(); ) ( classA a; a = new classB(); ...
Suresh Kumar Msk's user avatar
2 votes
1 answer
2k views

Could someone objectively tell me what's the difference between object-oriented and class-oriented/based programming? I know a little OOP basics, but I'm clueless about the class-oriented paradigm. An ...
Carlos Gouveia's user avatar
0 votes
1 answer
766 views

What is the definition of a Class , Object and an Instance and what is the difference between an Instance and an Object. I would like my answer in Simple English
Sarvesh Thiruppathi's user avatar
-1 votes
3 answers
191 views

All classes in Java by default extends Object public class Dog{ public Dog() } public static void main(String args[]){ Dog dog = new Dog(); } If I compile this code JVM will create 2 classes ...
dxn's user avatar
  • 1
-4 votes
1 answer
158 views

There can only be one instance of class and can have many objects...? If not then can you please explain me difference between Instance and Object of the class
Ethan Hunt's user avatar
-7 votes
2 answers
124 views

Can someone please explain me difference between Class class object and object of a class in Java.If possible with a simple example.
amit's user avatar
  • 3
0 votes
0 answers
95 views

Is instance and object same thing in OOP or not? A good explanation Here. But some explanation is so confusing. I want to know best explanation. Advance thanks .
Mushfique Monim's user avatar
-3 votes
1 answer
68 views

Can I say that class is a manual for building up an object? I agreed that object is one of the instance of class.But if some properties that defined by classes may not make sense for particular ...
Linked Linked's user avatar
0 votes
0 answers
72 views

Given the next example: //class public class Person { private int id; private String name; private int age; //class constructor to instantiate Person class public Person (int id, ...
Carlos Casallas's user avatar
-3 votes
1 answer
77 views

I am trying to understand the difference between the object and instance and in some forums it is mentioned as same and in other it is mentioned as different. Q.1 If we instantiate 4 different ...
supernatural's user avatar
  • 1,237
95 votes
15 answers
87k views

I know this sort of question has been asked before, but I still feel that the answer is too ambiguous for me (and, by extension, some/most beginners) to grasp. I have been trying to teach myself ...
TCCV's user avatar
  • 3,182
9 votes
11 answers
47k views

A class is a binding of methods and variables in a single unit. An object is an instance of a class. These are definitions for classes and objects in programming books. My friend said that a class ...
swaminathan_manickam's user avatar
6 votes
2 answers
16k views

Here is my conversion code. This is taking long time when we are dealing with large data... Calling the method almost a million times... We could clearly see that it is holding threads for a while. ...
Shak's user avatar
  • 197
8 votes
9 answers
7k views

Example 1 /** *Program Name: Cis36L0411.java *Discussion: Class -- Data Members ONLY * Method Members ONLY */ class Cis36L0411 { public static void main( String[] ...
CuriousStudent's user avatar

15 30 50 per page