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

What is shine enterprise java pattern?

Shine Enterprise Java PatternShine Enterprise Java Pattern has been developed for variety of application. This pattern has these parts:

• Maplet: a framework for doing web projects which are coincidence with MVC architecture. This framework helps developers to follow a standard pattern for developing a web application. Maplet helps developers to save time of developing and extending.

• JShooter: a framework that makes reflects oriented programming an easy job for developers. Meanwhile it helps distributing application on the network.

• JConnection: This package helps developers to work with JDBC and Hibernate easier than before.

• Util: This package helps developers in these subjects:

1- File System

2- Runtime

3- Compiler

4- System Information

5- Web Socket

6- MD5

7- Thread

8- Validation

9- XML Parsing

10- Web uploading

Maplet (Web, MVC Framework)

What is Maplet?

Maplet is a framework for implementing web based program, which is compatible with MVC architecture. This framework is very easy and helpful for developers and analyzers to do their jobs better than before.

JShooter (Reflect in Network Framework)

What is JShooter?

JShooter is a framework for distributing application programs on the network. Certainly, you have used RMI, Corba and JMS. Each of aforementioned technologies has its own special problems and at the same time enjoys extraordinary advantages. However, you must be careful about the expenses caused by these technologies. In most cases RMI, Corba and JMS increase the productions' costs unbelievably. However in other cases they confuse programmers. Years ago, Reflect Oriented Programming was the focus of attention within professional programmers, then Aspect Oriented Programming came into the programming world but instead of reducing the programmer's task, it causes the professional programmers and even the amateur ones to be confused in many cases. One of the most important capabilities of JShooter is that it makes the "Reflect Oriented Programming" easier to use.

JConnection (JDBC & Hibernate Component)

What is JConnection?

JConnection is a tool for developers at the DB layer that solve lots of amateurs' problems. This tool helps you to work with JDBC and Hibernate.

JDBC Class

This class helps you to less engagement with Statement and Connectionin entities in JDBC.

Hiberbate Class

This class makes it easy to work with Hibernate

What is Util?

Util package helps you to implement your application very easily. This package helps developers who don't want to use basic codes for their application.

What is Analyzer Class?

This class helps you to do XMLParsing easily.

What is Browser Class?

This class allows you to access the contents of a site via Web Socket.

What is Code class?

This class can considerably help you in encryption.

"addFileToWindowsRuntime", create a new class. Afterward you can create an object from the created class by using JShooter.

What is Info Class?

This class gives the user specifications from the executive system.

What is JCompiler?

This class considerably helps you to compile at the run time. For using it, you should inherit from the JCompiler class, then use the "addFileToWindowsRuntime", create a new class. Afterward you can create an object from the created class by using JShooter.

What is JThread class?

This class remarkably helps using Threads. The class that uses JThread class, must fist inherit from JThread.

What is JValidation Class?

This class helps in validations.

What is root class?

This class is designed for working with FileSystem.

What is run Class?

This class helps you using operation system commands in your application without considering the type of it.

What is normative method?

This is concerned with looking into the commonality of some elements. Best used with status study.

What is a CARE Package?

a box you get after 4 kills in a row. any items except emergency air drop nuke and care package.

What is class modifiers in java?

Class Modifiers are access modifiers that specify the accessibility levels of a class.

There are 4 basic access modifiers in java. They are:

1. Public

2. Protected

3. Default and

4. Private

Java programming does not run by just a single piece of class that has the whole functionality. You have hundreds of classes that interact with one another, passing data between them and returning output to the user of the system. So it is very important for members of one class to access members of another. Here members may refer to variables, methods and even classes. So, this is where the access modifiers come into picture. The modifier associated with every member of the class determines what level of visibility that member has.

How do you write a Java program to accept a 3-digits integer number and print out the highest digit from the derived input?

The tricky part is getting the individual digits. There are basically two ways to do this: 1) Convert the number to a string, and use string manipulation to get the individual digits. 2) Repeatedly divide the number by 10. The digit is the remainder (use the "%" operator).

To actually get the highest digit, initially assume that the highest digit is zero (store this to a variable, called "maxDigit" or something similar). If you find a higher digit, replace maxDigit by that.

Effect of assigning one object reference variable to another object reference variable?

In that case, both variables will point to the same object. Changes done through one object reference will also be visible if you access the object through the other object reference.

In that case, both variables will point to the same object. Changes done through one object reference will also be visible if you access the object through the other object reference.

In that case, both variables will point to the same object. Changes done through one object reference will also be visible if you access the object through the other object reference.

In that case, both variables will point to the same object. Changes done through one object reference will also be visible if you access the object through the other object reference.

A program prints vertically a numbers in c program?

It is too easy................

//Program to print numbers vertically

#include<stdio.h>

#include<conio.h>

void main()

{

int last_no;

int i;

clrscr();

i=0;

printf("Enter your last num.I will print 0 to that number");

scanf("%d",&last_no);

printf("\n");

while(i>last_no)

{

printf("%d\n",i);

i++;

}

getch();

}

//poo.papule

What is the difference between an interface and an abstract class?

We can't instantiate both interfaces and abstract classes.

The only one difference between them is that an interface can't contain concrete(fully defined) methods where as an abstract class may contain them.

An abstract class not necessarily contain abstract methods. we can make a class as abstract class even it does not has any abstract methods.

When there is a need to write both abstract and concrete methods in a single unit we have to use an abstract class instead of an interface since an interface cant contain concrete methods.

All the fields(or properties) of an interface are by default 'static final' even when you don't mention explicitly. And all methods are 'public abstract'.

But in an abstract class we can have any type of fields and methods.

What are the three looping statements in java PL?

There are 4 different looping statements in Java. They are:

  1. While loop
  2. Do-While loop
  3. For loop
  4. For Each loop

What is meant by inheritance?

In computer programming, inheritance means to derive a new object from an existing object, such that the new object inherits all the properties of the existing object. In object oriented programming, derived classes inherit the public and protected members of their base classes. This allows new classes to be created from existing classes, without the need to duplicate large chunks of code in the existing class. The new class can augment the inherited code to provide more specific behaviour.

How do you make a scientific calculator program in java?

import java.io.*;

import java.util.*;

public class Calculator

{

public static void main(String args[])

{

System.out.println("Make your arithmetic selection from the choices below:\n");

System.out.println(" 1. Addition");

System.out.println(" 2. Subtraction");

System.out.println(" 3. Multiplication");

System.out.println(" 4. Division\n");

System.out.print(" Your choice? ");

Scanner kbReader = new Scanner(System.in);

int choice = kbReader.nextInt();

if((choice<=4) && (choice>0))

{

System.out.print("\nEnter first operand. ");

double op1 = kbReader.nextDouble();

System.out.print("\nEnter second operand.");

double op2 = kbReader.nextDouble();

System.out.println("");

switch (choice)

{

case 1: //addition

System.out.println(op1 + " plus " + op2 + " = " + (op1 + op2) );

break;

case 2: //subtraction

System.out.println(op1 + " minus " + op2 + " = " + (op1 - op2) );

break;

case 3: //multiplication

System.out.println(op1 + " times " + op2 + " = " + (op1 * op2) );

break;

case 4: //division

System.out.println(op1 + " divided by " + op2 + " = " + (op1 / op2) );

}

}

else

{

System.out.println("Please enter a 1, 2, 3, or 4.");

}

}

}

Read more: How_do_you_make_calculator_program_in_java

The actions in a java class are called?

The actions in a java class are called methods.

Why broadcast method is not implement in Ipv6?

In IPv6, the same result can be achieved by sending a packet to the link-local all nodes multicast group at address ff02::1, which is analogous to IPv4 multicast to address 224.0.0.1.

Contents in j2ee?

J2EE stands for Java 2 Enterprise Edition. It is used to create enterprise class web applications that can be used by large enterprises and corporations. Most websites of major companies are created using j2ee. Some of the technologies used in J2ee are:

a. Struts

b. Hibernate

c. JSP

d. Servlets

e. Spring

f. etc

In java by default all class variables are public protected or private?

The default (no qualifiers) is different from any of those three.

Top gates are provided in which type of casting like as shallow casting or simple or complex or none?

ans is none because top gate are used in very large casting due to erosion occur in this casting

How can you fetch from php rather than java and net?

I am not aware of JAVA to that scale but if you just want to fetch data from mysql then PHP is just 2 statements:

  1. Query Statement. Eg. $query = mysql_query("SELECT Name FROM table_name");
  2. Fetch Statement. Eg. while($result = mysql_fetch_array($query)){ echo $result['Name']; }

Compared to .NET basic queries related to database are a lot simpler in PHP

Difference between value semantic and reference semantic?

Typically if one sets a variable like

int x = 100;

it is value semantics,

But

if one creates an array, like

int[] list = new list[10];

it is referring the location, so it is reference semantics.

What does data type mean in I.C.T.?

Data is stored in databases. To make the database more efficient, different types of data are usually classified as a certain 'data type'.

Can an float value be assigned to int variable?

Yes, an integer can be assigned as a float value.
But it get stored as a float value, that is an implicit type conversion occurs during compilation.Smaller data types are convertible to larger data types.

eg:

float b=12;// an integer constant is assigned to a float variable
printf("%f",b);// when printing b it will print as 12.000000

Is Java a Client or Server side scripting language?

Both. It runs on the browser but can request from a Server.

Similarly to Ajax the side is unclear. Client side is the best fit with requests.

What is the use of JDBC?

JDBC stands for Java Database connectivity which is a standard java API for database. It is for database connectivity with project.