Search results for 'java' in Knowledge

We've found '617' results.

Method Overloading in Java

How to overload method in java programming. How to invoke method .

java notes

Java is a general-purpose programming language that is class-based, object-oriented, and designed to have as few implementation dependencies as possible.

Jquery code no. 2

jQuery is a JavaScript library designed to simplify HTML DOM tree traversal and manipulation, as well as event handling, CSS animation, and Ajax. It is free, open-source software using the permissive MIT License. As of May 2019, jQuery is used by 73% of the 10 million most popular websites

Java assignment for BCA student

Please check my other content

Java notes for first year student

You will love these it contains all you need check out my other content

Teach yourself java in 21 days

A book of java with simple language and easy to understand. This book is intended for people with at least some basic programming background—which includes people with years of programming experience and people with only a small amount of experience.

java inner class

inner class in java

Enumeration, Autoboxing and Annotation

This course talks about enum in java, along with Autoboxing and Annotation. It forms a part of Advanced java, and see this notes only if you have a query or want to understand enum, and have finished your pre-requisites.

java collections

java collections

Java script. code 1

This code shows you how to use the dynamic language of javascript to change the web page dynamically

PHP- Backend Programming Language

PHP - Introduction PHP started out as a small open source project that evolved as more and more people found out how useful it was. Rasmus Lerdorf unleashed the first version of PHP way back in 1994.· PHP is a recursive acronym for "PHP: Hypertext Preprocessor".· PHP is a server side scripting language that is embedded in HTML. It is used to manage dynamic content, databases, session tracking, even build entire e-commerce sites.· It is integrated with a number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.· PHP is pleasingly zippy in its execution, especially when compiled as an Apache module on the Unix side. The MySQL server, once started, executes even very complex queries with huge result sets in record-setting time.· PHP supports a large number of major protocols such as POP3, IMAP, and LDAP. PHP4 added support for Java and distributed object architectures (COM and CORBA), making n-tier development a possibility for the first time.· PHP is forgiving: PHP language tries to be as forgiving as possible.· PHP Syntax is C-Like.Common uses of PHP·  PHP performs system functions, i.e. from files on a system it can create, open, read, write, and close them.· PHP can handle forms, i.e. gather data from files, save data to a file, through email you can send data, return data to the user.· You add, delete, modify elements within your database through PHP.·  Access cookies variables and set cookies.· Using PHP, you can restrict users to access some pages of your website.· It can encrypt data.Characteristics of PHPFive important characteristics make PHP's practical nature possible −1.Simplicity2.Efficiency3.Security4.Flexibility5.Familiarity

Java notes for BCA student

Check out my other content

Java script.

This code shows you how to use the dynamic language of javascript to change the web page dynamically

Java assignment for BCA student

Check out my other content

Scientific Numbers in java

Scientific Numbers in javaA floating point number can also be a scientific number with an "e" to indicate the power of 10:Examplefloat f1 = 35e3f; double d1 = 12E4d; System.out.println(f1); System.out.println(d1); BooleansA boolean data type is declared with the boolean keyword and can only take the values true or false:Exampleboolean isJavaFun = true; boolean isFishTasty = false; System.out.println(isJavaFun); // Outputs true System.out.println(isFishTasty); // Outputs false Boolean values are mostly used for conditional testing, which you will learn more about in a later chapter.CharactersThe char data type is used to store a single character. The character must be surrounded by single quotes, like 'A' or 'c':Examplechar myGrade = 'B'; System.out.println(myGrade); Alternatively, you can use ASCII values to display certain characters:Examplechar a = 65, b = 66, c = 67; System.out.println(a); System.out.println(b); System.out.println(c); Tip: A list of all ASCII values can be found in our ASCII Table Reference.StringsThe String data type is used to store a sequence of characters (text). String values must be surrounded by double quotes:ExampleString greeting = "Hello World"; System.out.println(greeting); The String type is so much used and integrated in Java, that some call it "the special ninth type".A String in Java is actually a non-primitive data type, because it refers to an object. The String object has methods that is used to perform certain operations on strings. Don't worry if you don't understand the term "object" just yet. We will learn more about strings and objects in a later chapter.Non-Primitive Data TypesNon-primitive data types are called reference types because they refer to objects.The main difference between primitive and non-primitive data types are:Primitive types are predefined (already defined) in Java. Non-primitive types are created by the programmer and is not defined by Java (except forString).Non-primitive types can be used to call methods to perform certain operations, while primitive types cannot.A primitive type has always a value, while non-primitive types can be null.A primitive type starts with a lowercase letter, while non-primitive types starts with an uppercase letter.The size of a primitive type depends on the data type, while non-primitive types have all the same size.Examples of non-primitive types are Strings, Arrays, Classes, Interface, etc. You will learn more about these in a later chapter.Test Yourself With ExercisesExercise:Add the correct data type for the following variables: myNum = 9; myFloatNum = 8.99f; myLetter = 'A'; myBool = false; myText = "Hello World";

Application of Compiler Technology

Applications of Compiler TechnologyImplementation of High-Level Programming LanguagesAbstraction: All modern languages support abstraction. Data-flow analysis permits optimizations that significantly reduce the execution time cost of abstractions.Inheritance: The increasing use of smaller, but more numerous, methods has made interprocedural analysis important. Also optimizations have improved virtual method dispatch.Array bounds checking in Java and Ada: Optimizations have been produced that eliminate many checks.Garbage collection in Java: Improved algorithms.Dynamic compilation in Java: Optimizations to predict/determine parts of the program that will be heavily executed and thus should be the first/only parts dynamically compiled into native code.Optimization for Computer ArchitecturesParallelismMajor research efforts had lead to improvements inAutomatic parallelization: Examine serial programs to determine and expose potential parallelism.Compilation of explicitly parallel languages.Memory HierarchiesAll machines have a limited number of registers, which can be accessed much faster than central memory. All but the simplest compilers devote effort to using this scarce resource effectively. Modern processors have several levels of caches and advanced compilers produce code designed to utilize the caches well.Design of New Computer ArchitecturesRISC (Reduced Instruction Set Computer)RISC computers have comparatively simple instructions, complicated instructions require several RISC instructions. A CISC, Complex Instruction Set Computer, contains both complex and simple instructions. A sequence of CISC instructions would be a larger sequence of RISC instructions. Advanced optimizations are able to find commonality in this larger sequence and lower the total number of instructions. The CISC Intel x86 processor line 8086/80286/80386/... had a major change with the 686 (a.k.a. pentium pro). In this processor, the CISC instructions were decomposed into RISC instructions by the processor itself. Currently, code for x86 processors normally achieves highest performance when the (optimizing) compiler emits primarily simple instructions.Specialized ArchitecturesA great variety has emerged. Compilers are produced before the processors are fabricated. Indeed, compilation plus simulated execution of the generated machine code is used to evaluate proposed designs.