AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
This document introduces Java by presenting the syntax, API, and how to build standalone programs and applets. It explains that Java is object-oriented, platform independent, and more secure than C++. Applets run in web browsers while servlets and applications do not. The document demonstrates how to compile and run a basic "Hello World" Java program. It also covers Java classes, objects, primitive data types, expressions, control statements, and arrays.
This document introduces Java by presenting the syntax, API, and how to build standalone programs and applets. It explains that Java is object-oriented, platform independent, and more secure than C++. Applets run in web browsers while servlets and applications do not. The document demonstrates how to compile and run a basic "Hello World" Java program. It also covers Java classes, objects, primitive data types, expressions, control statements, and arrays.
java-corporate-training-institute-in-mumbaiUnmesh Baile
Vibrant Technologies is headquarted in Mumbai,India.We are the best Java training provider in Navi Mumbai who provides Live Projects to students.We provide Corporate Training also.We are Best Java classes in Mumbai according to our students and corporators
This document introduces Java by presenting its syntax, API, and how to build standalone programs and applets. It explains that Java is object-oriented, platform independent, and more secure than other languages like C++. It demonstrates how to write a simple "Hello World" program and describes Java's primitive data types, expressions, control statements, and classes. Classes group fields and methods to describe objects, and objects are created using the new operator and instantiated from classes.
This document introduces Java by discussing how to build standalone Java programs and applets, why Java is a popular language, the Java Virtual Machine, basic Java syntax like classes, objects, and methods, and how to compile and run a simple "Hello World" Java program. It also covers Java concepts like primitive data types, expressions, control statements, and classes.
This document introduces Java by discussing how to build standalone Java programs and applets, the benefits of Java including its platform independence, and some key Java concepts like classes, objects, methods, and arrays. It provides example code of a simple HelloWorld program and describes Java's primitive data types, control structures, and the structure of a typical Java file with a public class.
This document introduces Java by presenting the syntax, API, and how to build standalone Java programs and applets. It explains that Java is an object-oriented language with a large library of predefined objects and is platform independent, making it suitable for web programming. It describes how applets run in web browsers within a security sandbox, while servlets run on web servers and applications are standalone programs. It provides examples of HelloWorld programs and covers Java data types, expressions, control statements, classes, objects, and arrays.
This document provides an overview of the Scala programming language. Some key points:
- Scala combines object-oriented and functional programming which allows it to be used for both small scripts and large systems. It runs on the Java Virtual Machine.
- Scala supports immutable and mutable data. Functions are first-class values that can be passed as arguments or returned from other functions.
- Scala code is more concise than Java by omitting semicolons and not requiring explicit data types. Variables start with 'var' and values start with 'val'.
- Scala is compatible with Java but provides additional features like richer type systems and built-in functional programming constructs.
ASIT provides best "VB.NET" Course ,to invites lot of people with technical back ground and experienced HR from corporate world as a part of pre-placement training, this actually helps us to perform better in our interviews. For more details please visit our website.
This document summarizes a presentation about connecting to activity streams using Yellow and Blue systems. It discusses OAuth and OpenSocial standards for authorization and social components. The Yellow and Blue system presented pulls information from various sources using XPages, OAuth, and Java and displays it in a unified activity stream. It demonstrates connecting an app to the activity stream on Greenhouse using OAuth and the Social Enabler from OpenNTF to retrieve and display the stream.
NET is a software framework developed by Microsoft which provides a controlled programming environment where development, installation and execution of the software can be done on windows based operating system. The .NET Training offers knowledge about .NET framework that supports the building and running of next gen applications and XML web services.
Information about the Stairway to Scala Applied and Advanced courses, available in both online and on-site formats. From Escalate Software: Bill Venners and Dick Wall.
Learn the Scala programming language or take your skills further.
A short intro to reactive systems, Scala, Akka and the Play Framework, with a Twitter based live demonstration and performance meters. Find the sample code at https://github.com/kjozsa/reactive2
This document provides instructions on how to take a class diagram created in a previous assignment and implement it as a working JavaScript program, including defining the class with properties and methods, writing a constructor, creating object instances, and calling methods to output data and property values. Students are directed to open their class diagram, write the class definition with constructor and methods, create and call methods on an object, and submit their class diagram and JavaScript file for the assignment.
This document discusses using existing JavaScript objects like the Document Object Model (DOM) and built-in objects like Math, Date, and Strings.
It explains that the DOM is a hierarchy of elements in an HTML document, with the <head> and <body> being major sections. It also describes static properties and methods of objects like PI for Math.
The document also covers graphical user interfaces in JavaScript, including how to create a basic form with elements like radio buttons, text boxes, and buttons. It provides an example form and instructions for a hands-on activity to build a flower shop information request form.
This document discusses internationalizing (i18n) Scala programs using the gettext approach. It describes marking strings for translation, extracting them to template files, loading translation files, and translating at runtime. Tools are introduced for extracting strings from Scala code and templates, editing translation files, and parsing loaded files. The approach works for various Scala template engines and frameworks like Play.
This document introduces Ceylon, describing it as powerful, readable, and predictable. It discusses key features of Ceylon like static typing, functional aspects, reified generics, and modularity. The document also outlines the Ceylon ecosystem, including its minimal core module, IDE support, command line interface, SDK modules, module repository, and web framework. Samples are provided to demonstrate Ceylon.
The document summarizes the Ceylon SDK modules. It describes that the SDK is progressing rapidly with most modules mature. It then provides brief descriptions of the purpose and status of each module including ceylon.build, ceylon.collection, ceylon.dbc, ceylon.file, ceylon.html, ceylon.interop.java, ceylon.io, ceylon.json, ceylon.math, ceylon.net, ceylon.process, ceylon.test, ceylon.time, and ceylon.unicode. It concludes by mentioning upcoming modules for ceylon.transaction, ceylon.locale,
Use notes objects in memory and other useful java tips for xpages developmentFrank van der Linden
This document discusses various Java tips and techniques for XPages development, including:
1) Putting Notes documents in memory by wrapping them in a DominoDocument class to avoid memory issues.
2) Using built-in JSON classes to build JSON instead of string concatenation.
3) Creating managed beans to minimize server-side JavaScript and make code more readable.
4) Developing utility classes and extending classes for reusable code.
TypeScript lets you write JavaScript the way you really want to. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. TypeScript is pure object oriented with classes, interfaces and statically typed like C# or Java. The popular JavaScript framework Angular 2.0 is written in TypeScript. Mastering TypeScript can help programmers to write object-oriented programs and have them compiled to JavaScript, both on server side and client side.
In the third tutorial I explain the difference between the equals operator and the equals() method. Then I further delve into documentation, JUnit testing, array manipulations and more on objects. Lastly I investigate the class methods versus the instance methods, static versus non-static and immutable objects.
Check out rest of the Tutorials: https://berksoysal.blogspot.com/2016/06/java-se-tutorials-basics-exercises.html
In this tutorial, I take you through an important feature of Java: File Operations. We are going to take a look at Character and Byte Streams, some built-in Classes and their functionalities to be able to perform file operations. Then we are going to learn about a famous concept called exception handling. We are going to finalize this tutorial with Number Formatting.
Check out rest of the Tutorials: https://berksoysal.blogspot.com/2016/06/java-se-tutorials-basics-exercises.html
This document introduces Java by discussing how to build standalone Java programs and applets, why Java is a popular language, the Java Virtual Machine, basic Java syntax like classes, objects, and methods, and how to compile and run a simple "Hello World" Java program. It also covers Java concepts like primitive data types, expressions, control statements, and classes.
This document introduces Java by discussing how to build standalone Java programs and applets, why Java is a popular language, the Java Virtual Machine, basic Java syntax like classes, objects, and methods, and how to compile and run a simple "Hello World" Java program. It also covers Java concepts like primitive data types, expressions, control statements, and classes.
This document introduces Java by discussing how to build standalone Java programs and applets, why Java is a popular language, the Java Virtual Machine, basic Java syntax like classes, objects, and methods, and how to compile and run simple Java programs. It provides an example "HelloWorld" Java program and explains key Java concepts like primitive data types, expressions, control statements, and classes.
This document introduces Java by discussing how to build standalone Java programs and applets, why Java is a popular language, the Java Virtual Machine, basic Java syntax like classes, objects, and methods, and how to compile and run a simple "Hello World" Java program. It also covers Java concepts like primitive data types, expressions, control statements, and classes.
ASIT provides best "VB.NET" Course ,to invites lot of people with technical back ground and experienced HR from corporate world as a part of pre-placement training, this actually helps us to perform better in our interviews. For more details please visit our website.
This document summarizes a presentation about connecting to activity streams using Yellow and Blue systems. It discusses OAuth and OpenSocial standards for authorization and social components. The Yellow and Blue system presented pulls information from various sources using XPages, OAuth, and Java and displays it in a unified activity stream. It demonstrates connecting an app to the activity stream on Greenhouse using OAuth and the Social Enabler from OpenNTF to retrieve and display the stream.
NET is a software framework developed by Microsoft which provides a controlled programming environment where development, installation and execution of the software can be done on windows based operating system. The .NET Training offers knowledge about .NET framework that supports the building and running of next gen applications and XML web services.
Information about the Stairway to Scala Applied and Advanced courses, available in both online and on-site formats. From Escalate Software: Bill Venners and Dick Wall.
Learn the Scala programming language or take your skills further.
A short intro to reactive systems, Scala, Akka and the Play Framework, with a Twitter based live demonstration and performance meters. Find the sample code at https://github.com/kjozsa/reactive2
This document provides instructions on how to take a class diagram created in a previous assignment and implement it as a working JavaScript program, including defining the class with properties and methods, writing a constructor, creating object instances, and calling methods to output data and property values. Students are directed to open their class diagram, write the class definition with constructor and methods, create and call methods on an object, and submit their class diagram and JavaScript file for the assignment.
This document discusses using existing JavaScript objects like the Document Object Model (DOM) and built-in objects like Math, Date, and Strings.
It explains that the DOM is a hierarchy of elements in an HTML document, with the <head> and <body> being major sections. It also describes static properties and methods of objects like PI for Math.
The document also covers graphical user interfaces in JavaScript, including how to create a basic form with elements like radio buttons, text boxes, and buttons. It provides an example form and instructions for a hands-on activity to build a flower shop information request form.
This document discusses internationalizing (i18n) Scala programs using the gettext approach. It describes marking strings for translation, extracting them to template files, loading translation files, and translating at runtime. Tools are introduced for extracting strings from Scala code and templates, editing translation files, and parsing loaded files. The approach works for various Scala template engines and frameworks like Play.
This document introduces Ceylon, describing it as powerful, readable, and predictable. It discusses key features of Ceylon like static typing, functional aspects, reified generics, and modularity. The document also outlines the Ceylon ecosystem, including its minimal core module, IDE support, command line interface, SDK modules, module repository, and web framework. Samples are provided to demonstrate Ceylon.
The document summarizes the Ceylon SDK modules. It describes that the SDK is progressing rapidly with most modules mature. It then provides brief descriptions of the purpose and status of each module including ceylon.build, ceylon.collection, ceylon.dbc, ceylon.file, ceylon.html, ceylon.interop.java, ceylon.io, ceylon.json, ceylon.math, ceylon.net, ceylon.process, ceylon.test, ceylon.time, and ceylon.unicode. It concludes by mentioning upcoming modules for ceylon.transaction, ceylon.locale,
Use notes objects in memory and other useful java tips for xpages developmentFrank van der Linden
This document discusses various Java tips and techniques for XPages development, including:
1) Putting Notes documents in memory by wrapping them in a DominoDocument class to avoid memory issues.
2) Using built-in JSON classes to build JSON instead of string concatenation.
3) Creating managed beans to minimize server-side JavaScript and make code more readable.
4) Developing utility classes and extending classes for reusable code.
TypeScript lets you write JavaScript the way you really want to. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. TypeScript is pure object oriented with classes, interfaces and statically typed like C# or Java. The popular JavaScript framework Angular 2.0 is written in TypeScript. Mastering TypeScript can help programmers to write object-oriented programs and have them compiled to JavaScript, both on server side and client side.
In the third tutorial I explain the difference between the equals operator and the equals() method. Then I further delve into documentation, JUnit testing, array manipulations and more on objects. Lastly I investigate the class methods versus the instance methods, static versus non-static and immutable objects.
Check out rest of the Tutorials: https://berksoysal.blogspot.com/2016/06/java-se-tutorials-basics-exercises.html
In this tutorial, I take you through an important feature of Java: File Operations. We are going to take a look at Character and Byte Streams, some built-in Classes and their functionalities to be able to perform file operations. Then we are going to learn about a famous concept called exception handling. We are going to finalize this tutorial with Number Formatting.
Check out rest of the Tutorials: https://berksoysal.blogspot.com/2016/06/java-se-tutorials-basics-exercises.html
This document introduces Java by discussing how to build standalone Java programs and applets, why Java is a popular language, the Java Virtual Machine, basic Java syntax like classes, objects, and methods, and how to compile and run a simple "Hello World" Java program. It also covers Java concepts like primitive data types, expressions, control statements, and classes.
This document introduces Java by discussing how to build standalone Java programs and applets, why Java is a popular language, the Java Virtual Machine, basic Java syntax like classes, objects, and methods, and how to compile and run a simple "Hello World" Java program. It also covers Java concepts like primitive data types, expressions, control statements, and classes.
This document introduces Java by discussing how to build standalone Java programs and applets, why Java is a popular language, the Java Virtual Machine, basic Java syntax like classes, objects, and methods, and how to compile and run simple Java programs. It provides an example "HelloWorld" Java program and explains key Java concepts like primitive data types, expressions, control statements, and classes.
This document introduces Java by discussing how to build standalone Java programs and applets, why Java is a popular language, the Java Virtual Machine, basic Java syntax like classes, objects, and methods, and how to compile and run a simple "Hello World" Java program. It also covers Java concepts like primitive data types, expressions, control statements, and classes.
Vibrant Technologies is headquarted in Mumbai,India.We are the best Java training provider in Navi Mumbai who provides Live Projects to students.We provide Corporate Training also.We are Best Java classes in Mumbai according to our students and corporators
This document provides an introduction to the Java programming language. It discusses Java syntax, the Java API, how to build standalone Java programs and Java applets. It explains why Java is popular, including its object-oriented nature, platform independence, security features, and large standard library. It also describes how to compile and run Java programs, Java's primitive data types, control structures, and the structure of Java programs, including the use of classes.
Present the syntax of Java Introduce the Javassuserfd620b
Present the syntax of Java
Introduce the Java API
Demonstrate how to build
stand-alone Java programs
Java applets, which run within browsers e.g. Netscape
Example programs
This document provides an introduction to the Java programming language. It discusses Java syntax, the Java API, how to build standalone Java programs and Java applets. It explains why Java is popular, including its object-oriented nature, platform independence, security features, and large standard library. It also describes how to compile and run Java programs, Java's primitive data types, control structures, and the structure of Java programs, including the use of classes.
This document provides an introduction to the Java programming language. It discusses Java syntax, the Java API, building standalone Java programs and Java applets. It explains why Java is popular, including its object-oriented nature, platform independence and security features. It also covers Java applets, servlets, applications, the Java virtual machine, and basic Java programming concepts like classes, objects, methods and arrays.
This document provides an introduction to the Java programming language. It discusses Java syntax, the Java API, building standalone Java programs and applets. It explains that Java is object-oriented, platform independent, and more secure than C++. It also describes how to compile and run Java programs, the Java Virtual Machine, primitive data types, control structures, classes and objects.
This document provides an introduction to the Java programming language. It discusses Java syntax, the Java API, how to build standalone Java programs and Java applets. It explains why Java is popular, including its object-oriented nature, platform independence, security features, and large standard library. It also describes how to compile and run Java programs, Java's primitive data types, control structures, and the structure of Java programs, including the use of classes.
This document provides an introduction to the Java programming language. It discusses Java syntax, the Java API, and how to build standalone Java programs and Java applets. It explains why Java is popular, including its object-oriented nature, platform independence, and security features. It also covers the differences between applets, servlets, and applications, and how to compile and run standalone Java programs. Finally, it introduces key Java concepts like classes, objects, and arrays.
This document provides an introduction to the Java programming language. It discusses Java syntax, the Java API, building standalone Java programs and Java applets. It explains why Java is popular, including its object-oriented nature, platform independence and security features. It also covers Java applets, servlets, applications, the Java virtual machine, and basic Java programming concepts like classes, objects, methods and arrays.
This document provides an introduction to the Java programming language. It discusses Java syntax, the Java API, building standalone Java programs and Java applets. It explains that Java is an object-oriented language with a large library of predefined objects and operations. Java code is compiled to bytecode that runs on the Java Virtual Machine, providing platform independence. The document demonstrates the structure of a basic Java program and class, and covers Java data types, expressions, control statements and object-oriented concepts like classes, objects and inheritance.
This document provides an introduction to the Java programming language. It discusses Java syntax, the Java API, building standalone Java programs and Java applets. It explains why Java is popular, including its object-oriented nature, platform independence and security features. It also covers Java applets, servlets, applications, the Java virtual machine, and basic Java programming concepts like classes, objects, methods and arrays.
Are you facing problem with your LAPTOP or TABLET, searching one permenant solutation for all these issues. Comeon step into Amcsquare is the Solutation for all your problems.
Any laptop or desktop problem step into AMCSQUARE . Looking for an geniune spare parts and top class service at your door steps is AMCSQUARE IT SERVICES .
AMC gives the flexibility and power to optimize the business process for its maximum efficiency and spur clients IT structure to be both resilient and agile.
learn JAVA at ASIT with a placement assistance.ASIT Education
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
Perl is a high-level scripting language that is useful for text manipulation, file handling, and system administration tasks. It was created by Larry Wall in 1987 and includes powerful regular expression capabilities. Perl scripts can be executed by specifying the path to the Perl interpreter at the top of the file or by invoking Perl at the command line. It supports common programming constructs like variables, conditional statements, and subroutines.
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
Learn Ruby Programming in Amc Square LearningASIT Education
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
SharePoint is a web application platform developed by Microsoft that combines functions traditionally found in separate applications like intranets, extranets, content management, and document management. It allows for internal collaboration on files and sharing within mid-size businesses and large organizations. SharePoint is proprietary, based on .NET and ASP.NET frameworks, and integrates strongly with other Microsoft products like Exchange and Office. It can be deployed either on-premises or through Microsoft's cloud-based Office 365 software-as-a-service offering.
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
This document provides an overview of the Python programming language. It discusses why Python is useful, highlighting its built-in data types, clean syntax, and suitability for tasks like web development, natural language processing, and machine learning. It also summarizes Python's ease of use, IDE, data types, syntax features like indentation and comments, and how to install and get started with Python development.
AMC Squarelearning Bangalore is the best training institute for a career development. it had students from various parts of the country and even few were from West African countries.
Real GitHub Copilot Exam Dumps for SuccessMark Soia
Download updated GitHub Copilot exam dumps to boost your certification success. Get real exam questions and verified answers for guaranteed performance
This presentation was provided by Bill Kasdorf of Kasdorf & Associates LLC and Publishing Technology Partners, during the fifth session of the NISO training series "Accessibility Essentials." Session Five: A Standards Seminar, was held May 1, 2025.
What makes space feel generous, and how architecture address this generosity in terms of atmosphere, metrics, and the implications of its scale? This edition of #Untagged explores these and other questions in its presentation of the 2024 edition of the Master in Collective Housing. The Master of Architecture in Collective Housing, MCH, is a postgraduate full-time international professional program of advanced architecture design in collective housing presented by Universidad Politécnica of Madrid (UPM) and Swiss Federal Institute of Technology (ETH).
Yearbook MCH 2024. Master in Advanced Studies in Collective Housing UPM - ETH
Link your Lead Opportunities into Spreadsheet using odoo CRMCeline George
In Odoo 17 CRM, linking leads and opportunities to a spreadsheet can be done by exporting data or using Odoo’s built-in spreadsheet integration. To export, navigate to the CRM app, filter and select the relevant records, and then export the data in formats like CSV or XLSX, which can be opened in external spreadsheet tools such as Excel or Google Sheets.
Odoo Inventory Rules and Routes v17 - Odoo SlidesCeline George
Odoo's inventory management system is highly flexible and powerful, allowing businesses to efficiently manage their stock operations through the use of Rules and Routes.
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsesushreesangita003
what is pulse ?
Purpose
physiology and Regulation of pulse
Characteristics of pulse
factors affecting pulse
Sites of pulse
Alteration of pulse
for BSC Nursing 1st semester
for Gnm Nursing 1st year
Students .
vitalsign
Contact Lens:::: An Overview.pptx.: OptometryMushahidRaza8
A comprehensive guide for Optometry students: understanding in easy launguage of contact lens.
Don't forget to like,share and comments if you found it useful!.
*Metamorphosis* is a biological process where an animal undergoes a dramatic transformation from a juvenile or larval stage to a adult stage, often involving significant changes in form and structure. This process is commonly seen in insects, amphibians, and some other animals.
The Pala kings were people-protectors. In fact, Gopal was elected to the throne only to end Matsya Nyaya. Bhagalpur Abhiledh states that Dharmapala imposed only fair taxes on the people. Rampala abolished the unjust taxes imposed by Bhima. The Pala rulers were lovers of learning. Vikramshila University was established by Dharmapala. He opened 50 other learning centers. A famous Buddhist scholar named Haribhadra was to be present in his court. Devpala appointed another Buddhist scholar named Veerdeva as the vice president of Nalanda Vihar. Among other scholars of this period, Sandhyakar Nandi, Chakrapani Dutta and Vajradatta are especially famous. Sandhyakar Nandi wrote the famous poem of this period 'Ramcharit'.
How to Set warnings for invoicing specific customers in odooCeline George
Odoo 16 offers a powerful platform for managing sales documents and invoicing efficiently. One of its standout features is the ability to set warnings and block messages for specific customers during the invoicing process.
Title: A Quick and Illustrated Guide to APA Style Referencing (7th Edition)
This visual and beginner-friendly guide simplifies the APA referencing style (7th edition) for academic writing. Designed especially for commerce students and research beginners, it includes:
✅ Real examples from original research papers
✅ Color-coded diagrams for clarity
✅ Key rules for in-text citation and reference list formatting
✅ Free citation tools like Mendeley & Zotero explained
Whether you're writing a college assignment, dissertation, or academic article, this guide will help you cite your sources correctly, confidently, and consistent.
Created by: Prof. Ishika Ghosh,
Faculty.
📩 For queries or feedback: [email protected]
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetSritoma Majumder
Introduction
All the materials around us are made up of elements. These elements can be broadly divided into two major groups:
Metals
Non-Metals
Each group has its own unique physical and chemical properties. Let's understand them one by one.
Physical Properties
1. Appearance
Metals: Shiny (lustrous). Example: gold, silver, copper.
Non-metals: Dull appearance (except iodine, which is shiny).
2. Hardness
Metals: Generally hard. Example: iron.
Non-metals: Usually soft (except diamond, a form of carbon, which is very hard).
3. State
Metals: Mostly solids at room temperature (except mercury, which is a liquid).
Non-metals: Can be solids, liquids, or gases. Example: oxygen (gas), bromine (liquid), sulphur (solid).
4. Malleability
Metals: Can be hammered into thin sheets (malleable).
Non-metals: Not malleable. They break when hammered (brittle).
5. Ductility
Metals: Can be drawn into wires (ductile).
Non-metals: Not ductile.
6. Conductivity
Metals: Good conductors of heat and electricity.
Non-metals: Poor conductors (except graphite, which is a good conductor).
7. Sonorous Nature
Metals: Produce a ringing sound when struck.
Non-metals: Do not produce sound.
Chemical Properties
1. Reaction with Oxygen
Metals react with oxygen to form metal oxides.
These metal oxides are usually basic.
Non-metals react with oxygen to form non-metallic oxides.
These oxides are usually acidic.
2. Reaction with Water
Metals:
Some react vigorously (e.g., sodium).
Some react slowly (e.g., iron).
Some do not react at all (e.g., gold, silver).
Non-metals: Generally do not react with water.
3. Reaction with Acids
Metals react with acids to produce salt and hydrogen gas.
Non-metals: Do not react with acids.
4. Reaction with Bases
Some non-metals react with bases to form salts, but this is rare.
Metals generally do not react with bases directly (except amphoteric metals like aluminum and zinc).
Displacement Reaction
More reactive metals can displace less reactive metals from their salt solutions.
Uses of Metals
Iron: Making machines, tools, and buildings.
Aluminum: Used in aircraft, utensils.
Copper: Electrical wires.
Gold and Silver: Jewelry.
Zinc: Coating iron to prevent rusting (galvanization).
Uses of Non-Metals
Oxygen: Breathing.
Nitrogen: Fertilizers.
Chlorine: Water purification.
Carbon: Fuel (coal), steel-making (coke).
Iodine: Medicines.
Alloys
An alloy is a mixture of metals or a metal with a non-metal.
Alloys have improved properties like strength, resistance to rusting.
2. Why Java?
•It’s the current “hot” language
•It’s almost entirely object-oriented
•It has a vast library of predefined objects and
operations
•It’s more platform independent
• this makes it great for Web programming
•It’s more secure
•It isn’t C++
3. Applets, Servlets and
Applications
•An applet is designed to be embedded in a Web
page, and run by a browser
•Applets run in a sandbox with numerous
restrictions; for example, they can’t read files
and then use the network
•A servlet is designed to be run by a web server
•An application is a conventional program
4. Java Virtual Machine
•The .class files generated by the compiler are not
executable binaries
• so Java combines compilation and interpretation
•Instead, they contain “byte-codes” to be executed by
the Java Virtual Machine
• other languages have done this, e.g. UCSD Pascal
•This approach provides platform independence, and
greater security
5. HelloWorld
• Note that String is built in
• println is a member function for the System.out class
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
6. Comments are almost like C++
• /* This kind of comment can span
multiple lines */
• // This kind is to the end of the
line
• /**
* This kind of comment is a
special
* ‘javadoc’ style comment
*/
7. Primitive data types are like C
Main data types are int, double,
boolean, char
Also have byte, short, long, float
boolean has values true and false
Declarations look like C, for example,
double x, y;
int count = 0;
8. Expressions are like C
•Assignment statements mostly look like those in C; you
can use =, +=, *= etc.
•Arithmetic uses the familiar + - * / %
•Java also has ++ and --
•Java has boolean operators && || !
•Java has comparisons < <= == != >= >
•Java does not have pointers or pointer arithmetic
9. Control statements are like C
if (x < y) smaller = x;
if (x < y){ smaller=x;sum += x;}
else { smaller = y; sum += y; }
while (x < y) { y = y - x; }
do { y = y - x; } while (x < y)
for (int i = 0; i < max; i++)
sum += i;
10. what is a class?
•A class consists of
• a collection of fields, or variables, very much like the
named fields of a struct
• all the operations (called methods) that can be
performed on those fields
• can be instantiated
•A class describes objects and operations defined
on those objects
11. Name conventions
• Java is case-sensitive; maxval, maxVal, and MaxVal are three different
names
• Class names begin with a capital letter
• All other names begin with a lowercase letter
• Subsequent words are capitalized: theBigOne
• Underscores are not used in names
• These are very strong conventions!
12. An example of a class
class Person {
String name;
int age;
void birthday ( ) {
age++;
System.out.println (name + ' is
now ' + age);
}
}
13. Creating and using an object
•Person john;
john = new Person ( );
john.name = "John Smith";
john.age = 37;
•Person mary = new Person ( );
mary.name = "Mary Brown";
mary.age = 33;
mary.birthday ( );
14. An array is an object
• Person mary = new Person ( );
• int myArray[ ] = new int[5];
• or:
• int myArray[ ] = {1, 4, 9, 16, 25};
• String languages [ ] = {"Prolog", "Java"};