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

Who created json or java scription notation?

JSON or Java Script Object Notation was originally created by Douglas Crockford, starting around 2001. It is referred to as JSON because the file extension used is .json.

Write EBNF descriptions for A java class definition header statement?

® {} class [extends class_name] [implements {, }] ® public | abstract | final ® {} class [extends class_name] [implements {, }] ® public | abstract | final

How do you use break as a goto form in java?

You just use the command:

break;

This will break out of the current loop. If you have several levels of loops, you can break to a certain label; the label must be right after the loop you want to exit from. You can't jumps to an arbitrary place in code.

You just use the command:

break;

This will break out of the current loop. If you have several levels of loops, you can break to a certain label; the label must be right after the loop you want to exit from. You can't jumps to an arbitrary place in code.

You just use the command:

break;

This will break out of the current loop. If you have several levels of loops, you can break to a certain label; the label must be right after the loop you want to exit from. You can't jumps to an arbitrary place in code.

You just use the command:

break;

This will break out of the current loop. If you have several levels of loops, you can break to a certain label; the label must be right after the loop you want to exit from. You can't jumps to an arbitrary place in code.

Mathematical formulation of assignment problem?

Let there be n jobs which are to be assigned to n operators so that one job is assigned to only one operator.

i = Index for job, i = 1, 2, … n

j = Index for operators, j = 1, 2, … n

Cij = Unit cost for assigning job 'i' to operator 'j'

1 if job i is assigned to operator j

Xij = 0 Otherwise

The objective is to minimize the total cost of assignment. If job I is assigned to operator 1, the cost is (C11X11). Similarly, for job 1, operator 2 the cost is (C12X12). The objective function is:

Minimize = ∑ni=1 ∑nj=1 Cij Xij …(1)

Since one job (i) can be assigned to any one of the operators, we have following constraint set:

∑ni=1 Xij = 1; for all j;j = 1, 2, ... n …(2)

Similarly for each operator, there may be only one assignment of job. For this, the constraint set is:

∑ni=1 Xij = 1; for all i;i = 1, 2, ... n …(3)

The non-negativity constraint is:

Xij > 0 …(4)

Minimize Z = ∑ni=1 ∑nj=1 Cij Xij

Subject to ∑ni=1 Xij = 1; for all j;j = 1, 2, ... n

∑nj=1 Xij = 1; for all i;i = 1, 2, ... n

Xij > for all i and all j.

JANAK RAJ UPRETI

TIMT COLLAGE RAJOURI GARDEN NEW DELHI

17/41 WEST PUNJABI BAGH

S-6..

9311864681 WITH ... DINESH GARG...9899558427

Can you tell me a C program to find if the strings are equal using pointers?

It is called strcmp, part of the standard run-time library. Returns 0 if the two strings are equals, non-zero otherwise.

How do java came into existence?

Before java invent there is no usage of internet, because the internet is run or operate based upon java only because java is platform independence before that there is no concept of platform independence. If u want to send any imformation to anybody there is no way to send abort post but its time taking but its not good to send with in time, so at that time they developed platform independence its more important concept. If platform independence exist then we can run the applications on any platform otherwise we have develop the programms related to the clients os otherwise they have maintain the os related to the application on which os we was develped the application so that platform independence is plays a important role on internet thats way java is takes place

What is the difference between File Reader and FileInputStream in java?

FileReader used to read the character stream in the file.i.e a file that contanis only the character means FileReader is the choice to read the file.On the other hand if the file contains image,byte like raw data format means FileInputStream is the choice to read the data in the file,.

Which scanner class method would you use to read integer as input?

The method Scanner.nextInt() returns an integer obtained as user input.

What is backpatching?

Back patching is the activity of filling up unspecified information of labels using appropriate semantic actions during the code generation process . by this we overcome the problem of processing incomplete information in one of the passes of a multi - pass assembler.

What is file format exception in java?

A very complicated thing...which nobody has answered yet.

Is Programming a language?

No, but of course there is a programmers' slang.

And programming is done with so-called 'programming languages'.

Why use throw in java in compare try-catch?

we use throws in our program so that we dont need to write try & catch block & to avoid the exception

Why cant you drag files into the minecraft jar?

If your dragging the file on top of the jar then thats because the jar is a file and not a folder.

If you drag a file on top of another file your say that you want to run file B with file A.

Get a zip Archive software like 7zip (google it)

If your using a archive software and this is still happening the only think i can think to tell you is open the archive.

What is a java lang unsupported class version error?

This is an error you receive when your Java Virtual Machine or JVM attempts to read a file but the version numbers are not supported. This can happen in cases where your version of JVM is higher than the version used for that file.

Meez without java download?

no we cant download meez with out java

General syntax in creating a method?

A Java method declaration will look like this:

[access modifier] [static] [final] [synchronized] [return type] [method name]([parameters])

Where:

access modifier is exactly one of the following

  • public
  • protected
  • (no text)
  • private

static, final, and synchronized are all optional.

return type is exactly one of the following

  • void
  • The name of a Java primitive
  • The name of a Java class

method name is a valid Java identifier which must conform to all of the following rules

  • Starts with a lowercase letter (a-z), an uppercase letter (A-Z), a dollar sign ($), or an underscore (_)
  • After the first character, may be a digit(0-9), a lowercase letter (a-z), an uppercase letter (A-Z), a dollar sign ($), or an underscore (_)
  • May not be one of the Java keywords
  • May not be one of the Java literals: true, false, or null

parameters is a comma-separated list of [type] [identifier] pairs, where:

  • type is a valid Java primitive or class name
  • identifier is a Java identifier, which conforms to the same rules as method name

How do you call the any functions in java?

Just like JavaScript, it is in this format: functionName(moreInfo);

Why you use THIS in java?

This refers to the current object that you are in. Two usual cases are when you need to (a) pass an object to another object, and that object is itself, or (b) when you need to reference a class-level variable and a local variable has shadowed it. There are other uses for this as well, but those uses are generally unnecessary.

Are the private access specifiers in Java and C plus plus the same?

No.

In Java, the private access modifier restricts member access to the class in which the member is declared. But in C++, private members are also accessible to friends of the class in which they are declared. The rough equivalent in Java would be package private access.

Not that Java doesn't have access specifiers, it has access modifiers. When no modifier is specified, default access is implied, which is package private for classes and public for interfaces.

1985 ford terravan class b?

If it,s a terravan with the bunk above the cab it,s considered a class C .