answersLogoWhite

0

📱

Java Programming

The Java programming language was released in 1995 as a core component of the Java platform of Sun Microsystems. It is a general-purpose, class-based, object-oriented language that is widely used in application software and web applications.

500 Questions

What is a constructor and its mandatory to use constructor in a class?

User Avatar

Asked by Wiki User

Constructor is a special block of code similar to the method that is used to initialize the state of objects. If you do not define a constructor in a class, Java compiler automatically put a default constructor in the class.

What is data hidding in oop?

User Avatar

Asked by Wiki User

Data hiding in OOP refers to the practice of hiding the internal state of an object from the outside world. This is achieved by encapsulating the data within the object and only allowing access to it through specified methods, known as getters and setters. By hiding the data, we protect it from being modified unintentionally and improve the integrity of the object's internal structure.

Where did the kamikaze's warrior code come from?

User Avatar

Asked by Wiki User

The kamikaze's warrior code traces its origins to the samurai tradition in Japan. This code, known as bushido, emphasized principles such as loyalty, honor, and self-sacrifice. Kamikaze pilots embraced this code as a way to serve their country with unwavering dedication during World War II.

What class is a new servlet usually inherited?

User Avatar

Asked by Wiki User

The servlet class created in web applications usually extend the javax.servlet.HttpServlet class. The HttpServlet extends the javax.servlet.GenericServlet. These classes contain the basic features that are required to run a web application.

What are the advantages of the new operator?

User Avatar

Asked by Wiki User

The new operator in programming is used to allocate memory for a new object or instance of a class. It helps in dynamic memory allocation and object creation at runtime, allowing for flexible memory management and object instantiation in languages like Java and C++.

What are the advantages and disadvantages of Norton antivirus?

User Avatar

Asked by Wiki User

An advantage is that Norton is a leader in antivirus software and stops most viruses before they have a chance to harm your computer.

A disadvantage is that Norton is costly and free antivirus programs are available that do almost, if not just as well.

Which one is better Dot Net Developer or Java Developer?

User Avatar

Asked by Wiki User

Since it relies on the particular project requirements and individual preferences, there is no definitive solution. Java and.NET are both stable, popular platforms with vibrant development communities. To make an informed choice, take into account variables including the project's scale, the infrastructure that already exists, and the team's level of experience.

What is meant by The Java Software Development Kit?

User Avatar

Asked by Pearl1989

It is a kit of JAVA development tools that are normally not shipped with JAVA! MOST companies have "Development kits" for their software - Java is not an exception!

Full name of java software?

User Avatar

Asked by Wiki User

Java programs are portable across operating systems and hardware environments.It is secure in that it is very difficult to write incorrect code or viruses that can corrupt/steal your data, or harm hardware such as hard disks.It is robust. It has several features designed to avoid crashes.It is independnt so that it suits any platforms

Full form of jndi in java?

User Avatar

Asked by Wiki User

JNDI stands for Java Naming and Directory Interface

JNDI is an API specified in Java technology that provides naming and directory functionality to applications written in the Java programming language

What are the advantages and disadvantages of user level threads and kernel level threads?

User Avatar

Asked by Wiki User

- USER LEVEL THREADS

Aadvantages:

· User-level threads can be implemented on operating system that does not support threads.

· Implementing user-level threads does not require modification of operating system where everything is managed by the thread library

· Simple representation which the thread is represented by a the thread ID, program counter, register, stack , all stored in user process address space

· Simple management where creating new threads, switching threads and synchronization between threads can be done without intervention of the kernel

· Fast and efficient where switching thread is much more inexpensive compared to a system call

- Disadvantages:

· There is a lack of coordination between threads and operating system kernel. A process gets one time slice no matter it has 1 thread or 10000 threads within it. It is up to the thread itself to give up the control to other threads

· If one thread made a blocking system call, the entire process can be blocked in the kernel, even if other threads in the same process are in the ready state

KERNEL LEVEL THREAD:

- Advantages:

· Because kernel has the full knowledge of all the threads, scheduler may decide to allocate more time to a process having large number of threads than process having small number of thread, where the kernel threads come useful for intense application

- Disadvantages:

· Kernel level threads are slow and inefficient, since kernel must manage and schedule all the threads as well as the processes. It requires a full TCB for each thread to maintain information about threads, which results in increasing of overheads and kernel complexity

What is virtual machine concept?

User Avatar

Asked by Wiki User

A 'virtual machine' is a software program which emulates another machine type. The virtual machine behaves exactly like the machine it emulates but uses the physical hardware of the machine it is running on. In other words, it translates calls intended for the virtual machine into calls that will execute upon the physical machine, effectively acting as an interpreter between the two machines.

Java syntax are based on which language?

User Avatar

Asked by Wiki User

Java's syntax is primarily based on the syntax of the C and C++ programming languages. James Gosling and his team, the creators of Java, aimed to make Java familiar to programmers who were already proficient in C and C++. This approach facilitated the adoption of Java among developers with prior experience in these languages.

At AchieversIT, our Java training courses cover not only the syntax but also the core concepts and principles of Java programming, enabling students to become proficient Java developers.

Convert 70 degrees celsius to Fahrenheit?

User Avatar

Asked by Wiki User

What does 70 degrees Celsius convert to degrees Fahrenheit? Scroll down to related links and look at "Conversion of temperatures and formulas".

What data type is middle initial?

User Avatar

Asked by Wiki User

what data type is Middle initial

How can you change tally 7.2 gold - multi user to tally 7.2 silver - single user?

User Avatar

Asked by Wiki User

Tally Multi User and Tally single users have no difference in features. Both have same features.

Tally is single user or multi user it depends on type of license which has been purchased. Tally has licensing system different for each version. One can upgrade from Tally single user to Tally Multi user but one cannot downgrade from multi user to single user.

So buy accordingly keeping in mind your future plans.

For more information on Tally you can visit Tally's blog at www.apnitally.com

Can you declare and define the constructor within class?

User Avatar

Asked by Wiki User

Yes, you can declare and define the constructor within a class. A constructor is a special member function of a class that is automatically called when an object of the class is created. It is used to initialize the object's data members. The constructor can be declared and defined within the class definition or can be defined outside the class definition using the scope resolution operator (::).

How do you call repaint using thread in java applet?

User Avatar

Asked by Wiki User

To call repaint using a thread in a Java applet, you can use the repaint method directly within the run method of a Thread or within the run method of a Runnable that is executed by a Thread. Inside the run method, you can call repaint to update the applet's graphics. For example:

public void init() {
   // ...
   Thread thread = new Thread(new Runnable() {
      public void run() {
         // Perform background tasks
         // ...
         repaint(); // Call repaint to update graphics
      }
   });
   thread.start();
}

Alternatively, you can also extend the Thread class itself and override its run method to include the repaint call.

Which one is not an example of a method of determining an IMDC location?

User Avatar

Asked by Wiki User

IMDC uses a compass, radio or satellite to determine their location.

How do you import such classes if the classes are needed to be imported first before it can be used in program?

User Avatar

Asked by Wiki User

To import a class in a program, you typically include an import statement at the top of your code. The syntax for importing a class is: import package_name.class_name;. For example, if you want to import a class called "Person" from a package called "com.example", you would write: import com.example.Person;. Once the class is imported, you can use it in your program by creating objects of that class or accessing its static members.

A program that searches for single-digit numbers in a text and changes them to their corresponding words?

User Avatar

Asked by Wiki User

To create a program that accomplishes this task, you can follow these steps:

  1. Read the text input.
  2. Use regular expressions or string manipulation techniques to identify and extract all the single-digit numbers from the text.
  3. Replace each single-digit number with its corresponding word using a lookup table or a switch statement.
  4. Display the modified text with the numbers converted to words.

Write a program in Java which will print all nested loop between 1 to 500?

User Avatar

Asked by Wiki User

Sure! Here's a Java program that will print all the nested loops between 1 to 500:

public class NestedLoopExample {
    public static void main(String[] args) {
        for (int i = 1; i <= 500; i++) {
            for (int j = 1; j <= 500; j++) {
                System.out.println("i=" + i + ", j=" + j);
            }
        }
    }
}

This program uses two nested for loops to iterate from 1 to 500. It prints the value of i and j for each iteration of the loops.

What are different Constructor and finalize in java?

User Avatar

Asked by Wiki User

In Java, a constructor is a special method that is invoked when an object of a class is created. It is used to initialize the state of an object.

On the other hand, the finalize() method is a method defined in the Object class. It is invoked by the garbage collector before deallocating memory for an object that no longer has any reference to it. It is used to perform any necessary cleanup operations before an object is removed from memory.

What the scincifics method?

User Avatar

Asked by Wiki User

The scientific method is a systematic approach used in scientific inquiry to investigate and acquire knowledge about the natural world. It involves observing and formulating a hypothesis, designing and conducting experiments or gathering data, analyzing the results, and drawing conclusions based on evidence. This method allows for replication and verification of results, ensuring the reliability of scientific findings.