answersLogoWhite

0

You can declare a class as "final".

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you prevent class extending in java?

Declare the class as final. final class A{ ... }


How an exception subclass is created in java explain?

We can create a exception sub class by extending Exception class available in java


What is Inheritance in Java language?

A Scenario where one class is inheriting/extending the behavior of another class


What do you mean by extending classes in java?

That's the name used in Java for inheritance. It means that one class has all the behavior of another class; additional functionality can be added to the derived class.


What are the two ways of spawning a thread in Java?

You can create a Thread in Java by using two ways. 1. Extending the Thread class public class Test extends Thread { ..... } 2. Implementing the Runnable Interface public class Test implements Runnable { ... }


What modifier do you use to prevent that class from having any subclasses?

In Java, you use the final modifier to prevent a class from having any subclasses.


Extension file for Java?

Java source files have the .java extension, compiled Java class files have the .class extension.


What is inline thread in java?

You can start a thread "inline" without implementing Runnable or extending Thread class( new Thread() { public void run(){// do something} } ).start();


The actions in a java class are called?

The actions in a java class are called methods.


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


How do you call main class with in main class in java?

We can't call a class. We always call a method in java.


When java uses compiler?

What i know is java we will use compiler when it want to get class file(file with .class extension) from java file(file with .java extension).