answersLogoWhite

0

Yes, you just have to implement a method that creates a new object, and call it.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is an object in Java?

object is an instance of a class. it's used to allocate memory dynamically at run time to access class members.


How do you call a method in Java?

It's when you take a object and run some code in the class of that object.


Is java an pure oop or not?

Yes, java is a pure object oriented program because it derives its syntax from C and object oriented features from C++. Moreover its a platform independent language which means it can be run any where any time in any environment.Thus, it's appropriate to say java is a pure OOP.


Why thread used in java?

Threads are used in Java to run multiple operations in parallel. You can create and run multiple threads in parallel to utilize the processing power of the computer and reduce waiting time which would be high if processes are executed in sequence


Why you start java program by class?

without class non of the folder can run so the java program should start in class we can use the class without object in java


Difference between a java complier and the Java JIT?

A java compiler takes Java source code and turns it into Java bytecode, which can then be run by the java virtual machine.Using JIT means that the java code will be compiled and executed at the time that you run the program, which will slow down the program because it has to compile the code at the same time that it runs.


Why object is known as basic run-time entity?

coz at the run time object is provided memory , that's why object is called run time entity .


How do you run Java in Windows?

Eclipse is an Integrated Development Environment that can be used to create and run java programs. a. First we need to download the Eclipse IDE from eclipse's website. b. Then you need to install the IDE and create a shortcut on your desktop. c. Click on the shortcut icon in desktop d. The system will ask you to choose a workspace location. Choose a location in your local pc e. Eclipse opens default package explorer view. Create a java project f. Right click on the project and create a new java class g. Write your code inside the java class h. Click on the Menu item called "Run" and select "Run As" -> Java Application i. If your java program has a main method, the Run As - > Java Application will execute your program.


I've updated java 3 times and when I try to use java I get an error saying my java is out of date I've tried hitting the run this time button it doesn't work?

Just press the button that says run time, or something like that, unfortunateley you have to press that button every time you use a java thingamajig


How can you pass run-time arguments in java?

Once you have compiled your Java source files: javac MyClass.java You can run the resulting class file and pass arguments: java MyClass arg0 arg1 arg2


What is needed to run java?

You must have the Java Run-time Environment installed on your computer. Steps: 1. Open Command Prompt 2. Enter the command: javac class.java 3. Enter the command: java <classfilename> (without the .java or .class extension) The javac command will compile your java source file and create a class file. The java command will execute or run your java class file.


Difference between run time error and run time exception in java?

Runtime Error Cannot be Rectified but Runtime Exception can.