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.

5,203 Questions

In what study would one find polymorphism?

Polymorphism is the changing of one subject to an altered state. There are actually two areas of study where polymorphism would be particularly common: chemistry and web programming.

What is the use of hibernet in Java?

Hibernate is a framework in Java and J2EE which is used to connect to the database in Enterprise class applications. Actually Hibernate is too big a topic to elaborate in one answer but it is used to connect to databases and retrieve/update values. The benefit is that, we need not manually write queries like we do in normal Java database connectivity. Instead hibernate takes care of connecting to the database and picking up or updating the values we need. It does this with the help of hibernate mapping files which are xml files that represent the database schema which we intend on retrieving or updating.

Why can't method override be used without inheritance?

Overriding a method means that you are replacing an existing or virtual method that has already been defined in the parent object class, so without using inheritance, there can be no existing method to override.

What companies produced interactive dolls in the 1990s?

DSI Toys produced a doll that recited a bedtime prayer. Irwin Toy Ltd. implanted moisture-sensitive switches in its Kissy Kissy Baby doll that activated when kissed, causing the doll to kiss and giggle.

Compare anonymous class with abstract class?

Abstract Classes contain the work abstract in it. It is used when you know that you will need to use an object of its type but do not know the inner workings yet. Anonymous classes are those classes that are constructed on the fly. You need to know its inner workings.

How do you shortcut systemoutprintln in javascript?

There is no systemout object in JavaScript. Do you mean Java?

Double indicator method?

A double indicator method is used in many different aspects of the medical field. This can be used during surgeries, physical therapy, and patient counseling.

Define the concept of Java Bytecode and its importance?

1. The byte code is intermediate language.

2. It is not understandable by user as well as processor.

3. Tjava program(.java) will get converted to byte-code(.class) after compilation.

4. It is a set of highly optimized instructions.

Advantages(impotance) of byte code:

1. It is useful for exchanging java program without disclosing the logic implemented in it to others.

2. The byte code are many times compressed version of actual Java program.Therefore,it is easy and fast to transport them over the internet.

3. Byte codes are not executable and they are platform independent.

Which of these methods of string class is used to obtain character at specified index?

You don't specify "these methods", but chances are what you're looking for is the charAt method

What is the distinction between denotation and reference in the context of semantics and pragmatics?

Reference is something you point at and you can see with your own eyes. For example, you are in a school canteen queuing for lunch. On reaching the servery you can either point at the meal you would like to get or say 'Can I have egg curry, please' or you can do both, say and point to the meal. This way you refer to a particular object.

In a sentence 'The wolf is a much undersood animal' you do not mean any particular animal, but rather the whole species, or group.

Similarly 'Sunday night is as quiet as the grave around these parts'. By Sunday night you do not mean any particulary night but rather ANY Sunday night in these parts. this is called denotation, and the subject is lablled as denotatum.

Class hierarchies and multiple level of inheritance?

Multilevel Inheritance

A Scenario where one class is inheriting/extending the bahavior of another class which in turn is inheriting behavior from yet another class.

Ex: public class Automobile {…}

Public class Car extends Automobile {…}

Public class Ferrari extends Car {…}

This multilevel inheritance actually has no limitations on the number of levels it can go. So as far as java goes, it is limitless. But for maintenance and ease of use sakes it is better to keep the inheritance levels to a single digit number.

Is betegulese bigger then the sun?

Yes. The Wikipedia lists its diameter (or radius) as 950-1200 times that of the Sun. It is a variable star (its diameter changes); also it is hard to measure its diameter exactly.

What does it mean in java when a constructor is undefined?

When a constructor is not define in java then the instance used in class is not optimised the value and therefore some times it generates some garbage value.

By the way , When we not define a constructor then generally it not distrub the execution of the program.

Why constructor is a special member functions?

Every class, including abstract classes, MUST have a constructor. Hard Code that into your brain. But just because a class must have one, doesn't mean the programmer has to type it. A constructor looks like this:

class Car {

Car() { } // The constructor for the Car class

}

You notice anything missing in the declaration above? There's no return type! Two key points to remember about constructors are that they have no return type and their names must exactly match the class name. Typically, constructors are used to initialize instance variable state, as follows:

class Car {

int size;

String name;

Car(String name, int size) {

this.name = name;

this.size = size;

}

}

In the preceding code example, the Car class does not have a no-arg constructor. That means the following will fail to compile:

Car f = new Car(); // Won't compile, no matching constructor

but the following will compile:

Car f = new Car("Ford", 43); // No problem. Arguments match

// the Car constructor.

So it's very common for a class to have a no-arg constructor, regardless of how many other overloaded constructors are in the class (constructors can be overloaded just like methods). You can't always make that work for your classes; occasionally you have a class where it makes no sense to create an instance without supplying information to the constructor. A java.awt.Color object, for example, can't be created by calling a no-arg constructor, because that would be like saying to the JVM, "Make me a new Color object, and I really don't care what color it is...." Do you seriously want the JVM making your color choices?

Why you should use StringBuilder class compared to String class?

Both StringBuffer and StringBuilder are much faster when compared to the String class when it comes to manipulating string objects. But, the StringBuilder is usually faster than the StringBuffer because the StringBuffer object is internally synchronized so, due to the multi-threading overhead the StringBuilder is faster.

So, if your application is multi-threaded and the object could be accessed/modified by multiple threads use the StringBuffer, else use the StringBuilder.

What is Java Container Class?

A class that is used to contain other java objects. They contain methods for adding and removing objects, as well as ways to iterate through them. They tend to differ mostly by how the objects are referenced (by key or no), by how fast their various methods execute, and by how much memory the container uses. Examples include: java.util.Vector java.util.Hashtable java.util.HashSet

What is one disadvantage that objects in LEO have?

Moving data across constellations of other satellites will be complex. Technology for that is still untested

How can you run frame program in java?

Same as that of the applet we need to run this frame...........

What is static code analysis used for?

The static code analysis is used for the analysis of computer software such as video games and programs like Microsoft Word or Photoshop. The difference between this and Dynamic Analysis is that this is performed without it actually executing/starting the program up.

What were some methods abolitionist used to sway public opinion?

Guilting people into taking action since they knew of it yet did nothing. In actuality, the methods of the abolitionists are really no different than what groups do today.

What is the use of object cloning in java?

It allows you to keep the original object untouched. In Java, objects are accessed by reference meaning that when you pass it in a function, anything done to it in the function modifies the original object directly.