What is the point that is the same distance from any circle?
There is such a point only if all the circles are concentric.
Explain the structure of a java program?
The fundamental structure of any Java programme should look like:
[package declarations]
[import statements]
[class declaration]
An example is given below:
package abc;
import java.lang;
class Demo {
public static void main(String[] args) {
Sytem.out.println("Hello! World");
}
}
//The file containing this class must be named Demo.java
What is an Program compilation?
That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.
That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.
That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.
That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.
Why cup symbol is used for java?
I read this in a book that it's because all class files in Java are identified by a magic number which reads CAFEBABE in hexadecimal assembly. The software engineers that designed Java at Sun used to take a break in a nearby cafe during work hours where they checked out hot girls while sipping their coffee.
What is java primitive data types?
Any data that is not stored as an object - like the integral data types (int, long, etc.), or boolean variables.
Any data that is not stored as an object - like the integral data types (int, long, etc.), or boolean variables.
Any data that is not stored as an object - like the integral data types (int, long, etc.), or boolean variables.
Any data that is not stored as an object - like the integral data types (int, long, etc.), or boolean variables.
How do you edit java applications?
You can use any text editor, like NotePad. Although normally, it is easier to use some IDE for Java programming; those IDEs have a built-in editor.
Difference between encapsulation and abstraction?
Encapsulation means hiding something, so you don't know anything about it, not even whether it exists or not.
Abstraction means vague, you may know what it is or expect what it will be and thus behave, but not exactly. And you don't know how it (the object) is implemented in details.
In a more compact context, encapsulation is referring to hiding data members (or attributes) and their types from outsiders, while abstraction means to define the interface or behaviors of an object (the APIs). You know the method signatures (the contracts), but you don't know anything about the implementation.
lavatron is a sport arena light bulb display.it is a kind of applet.it is invented by david la velle.lavatron is able to produce the on screen image nd its Sid effects allow it to load very quickly.
What is the difference between AP classes and Advanced Classes in high school?
Gifted classes are for those who either have certain conditions that need to be met or are considered quite smart for their age.
AP, or advanced placement, classes are more or less classes preparing you for an advanced level of work. AP Calculus or AP Biology prepare you for college and have the chance to give you credit for the courses, this way you won't have to take them during your enrollment in college.
What is compilation process in programming?
In general a compiler will go through a few steps:
# Lexical analysis - making sure all the symbols in the source code are legal, and turning them into "tokens" for the next step.
# Syntactic analysis - analyze the tokens, ensuring they follow the rules of the language grammar and parsing them into some form of syntax tree. # Code generation - uses the syntax tree to create some form of intermediate language; oftentimes into assembly instructions, or a unique assembly-like language. # Code optimization - may or may not perform optimization on the intermediate language before translating it into executable code. Of course the true process of compilation is almost always much more complex than this, and may involve many more steps.
How do you compile applet programs in java?
1. first you type your applet programm in notepad in save it as classname.java in the bin directory. example: if the class name is A then save it in jdk1.5->bin as A.java
2. now create a HTML file in notepad as given below
and save it as in bin by A.HTML
NOTE: applet code should be always classname.java and also save with same classname.HTML
3. now go to strart->run type cmd press enter the dos screen will open.
4. give the location where you saved the file as
D: CD jdk1.5 press enter
CD bin enter
javac A.java
appletviewer A.HTML
What is the Fahrenheit to Celsius program in java?
degreesFahrenheit = degreesCelsius * 9 / 5 + 32;
degreesFahrenheit = degreesCelsius * 9 / 5 + 32;
degreesFahrenheit = degreesCelsius * 9 / 5 + 32;
degreesFahrenheit = degreesCelsius * 9 / 5 + 32;
How do you write simple java program to print equlater star pyramid?
public class StarPyramid
{
public static void main(String [] args)
{
int space = 0, line = 0, star = 0;
for(line = 1; line <= 26; line ++)
{
for(space = 26; space > line; space--)
{
System.out.print(" "); // Display one space
}
for(star = 1; star < line; star++)
{
System.out.print("*‟);
}
for(star = line; star >= 1; star--)
{
System.out.print("*‟);
}
System.out.println(); // Display new line with ln
}
}
}
What are the advantage of database?
In every field of work there is a need of maintaining database to store records . The major advantages of the DBMS are the speed , flexibility, ease , and that it can be stored anywhere. Also the data is very consistent and integrated.
What is the Java program to print the following pattern 1 234 56789 101112 13?
import java.io.*;
class pattern
{
void main() throws IOException
{
int i,j;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter n terms");
i=Integer.parseInt(br.readLine());
for(i=1;i<=4;i++)
{
for(j=1;j<=i;j++)
{
System.out.print(j);
}
System.out.println();
}
}
}
What is the language primarily used for Internet based applications?
with single programming language we cannot do anything on the internet. Actually every application in java is divided into three layers. Presentation layer, Application layer, Data layer. Every layer has its own specification. Presentation layer role is to interact with client means presentation layer takes input from the user and send it to Application layer. Application layer is a business logic layer. All the logic is done in this layer. Data layer contains the data.
for example:- suppose user enters student no. and student name in presentation layer, from here the data is send to application layer. In application layer we can write the logic for inserting, deleting, retriving and modifying the user data in database. From here the controller goes to datalayer to fetch data from database and sends the data back to user then the user see the corresponding data in the presentation layer.
For presentation layer: html, jsp, velocity etc are used.
For application layer: ejb, hibernate.......
for data layer: oracle.......
How data hiding is achieved in java?
Data hiding in the java is achieved through the use of encapsulation.
What is the scope of any variable?
The Scope of a variable defines the areas of a program where this variable would be visible and can be used. For ex:
a. Method variables - are visible only inside the method where they are declared and hence their scope is only the method
b. Class variables - are visible inside the class and can be used by any method inside the class and hence their scope is the whole class.
If it is already compiled, you can start your Java program from the command line. Just type
java myclass
replacing "myclass" with the program you want to start - a program with the ".class" extension, for example, myclass.class.
Difference between fixed loop and variable loop?
Fixed loop: this is the loop where the number of iterations are known.
Variable loop: Here the number of iterations are not known
Example for a variable loop.
The pseudocode for variable whille loop
begin
character cchoice
display"enter the choice"
accept cchoice
while(cchoice='y')
begin
//execute the statements
end
end
Rkarthikeyan
It actually doesn't. You see... it actually takes the orange and once its completed its 340th task, it evaluates the juice out of it. Now, about the transmit part, Javas are actually mammals that used to exit a long while back.
An applet is an application designed to be transmitted over the Internet and executed by a Java-compatible Web browser.
Applets are small applications that are accessed on an Internet server, transported over the Internet, automatically installed, and run as part of a Web document.
Applet has no main method.
Program to find the sum of harmonic series?
Let's assume that you want the sum of the general harmonic series:
sum(n=0,inf): 1/(an+b)
Since we know that the harmonic series will converge to infinity, we'll also assume that you want the sum from 0 to n.
double genHarmonic(const double n, const double a, const double b) {
double sum = 0.0;
// perform calculations
int k;
for(k = 0; k <= n; ++k) {
sum += 1.0 / (a * k + b);
}
return sum;
}
Telephone bill program written in java source codes?
I Want the Java Coding For Creating Phone Bill & Customer Name & Her Details, Plz Send The Coding For Creating Phone Bill,
Thank You
Regards
Suresh
The attributes in schema are defined like kid elements. In order to have the attributes the element has a complex type.
Attribute are the set of data elements that define the object. The declaration of an object attribute take the following form:
<modifier> <type> <name> = initial_value;