🗊Презентация 3. Essential Java Classes 5. Some Useful Classes

Нажмите для полного просмотра!
3. Essential Java Classes 5. Some Useful Classes, слайд №13. Essential Java Classes 5. Some Useful Classes, слайд №23. Essential Java Classes 5. Some Useful Classes, слайд №33. Essential Java Classes 5. Some Useful Classes, слайд №43. Essential Java Classes 5. Some Useful Classes, слайд №53. Essential Java Classes 5. Some Useful Classes, слайд №63. Essential Java Classes 5. Some Useful Classes, слайд №73. Essential Java Classes 5. Some Useful Classes, слайд №83. Essential Java Classes 5. Some Useful Classes, слайд №93. Essential Java Classes 5. Some Useful Classes, слайд №103. Essential Java Classes 5. Some Useful Classes, слайд №113. Essential Java Classes 5. Some Useful Classes, слайд №123. Essential Java Classes 5. Some Useful Classes, слайд №13

Вы можете ознакомиться и скачать презентацию на тему 3. Essential Java Classes 5. Some Useful Classes. Доклад-сообщение содержит 13 слайдов. Презентации для любого класса можно скачать бесплатно. Если материал и наш сайт презентаций Mypresentation Вам понравились – поделитесь им с друзьями с помощью социальных кнопок и добавьте в закладки в своем браузере.

Слайды и текст этой презентации


Слайд 1





3. Essential Java Classes
5. Some Useful Classes
Описание слайда:
3. Essential Java Classes 5. Some Useful Classes

Слайд 2





Class System (1 of 2)
contains several useful class fields and methods
it cannot be instantiated
standard input, standard output, and error output streams
gets and sets system properties
Описание слайда:
Class System (1 of 2) contains several useful class fields and methods it cannot be instantiated standard input, standard output, and error output streams gets and sets system properties

Слайд 3





Class System (2 of 2)
exit(int status) - terminates the currently running Java Virtual Machine
gc() - runs the garbage collector
arraycopy(…) - copies an array
console() - Returns the unique Console object associated with the current JVM
nanoTime() - Returns the current value of the running JVM high-resolution time
See http://docs.oracle.com/javase/7/docs/api/java/lang/System.html for details
Описание слайда:
Class System (2 of 2) exit(int status) - terminates the currently running Java Virtual Machine gc() - runs the garbage collector arraycopy(…) - copies an array console() - Returns the unique Console object associated with the current JVM nanoTime() - Returns the current value of the running JVM high-resolution time See http://docs.oracle.com/javase/7/docs/api/java/lang/System.html for details

Слайд 4





Class Runtime
Allows to interface with the environment in which the application is running
static getRuntime() - Returns the runtime object associated with the current Java application
freeMemory() - returns the amount of free memory in the JVM
totalMemory() - returns the total amount of memory in the JVM.
Описание слайда:
Class Runtime Allows to interface with the environment in which the application is running static getRuntime() - Returns the runtime object associated with the current Java application freeMemory() - returns the amount of free memory in the JVM totalMemory() - returns the total amount of memory in the JVM.

Слайд 5





Example of String Command Execution
Runtime r = Runtime.getRuntime(); 
try{
     r.exec("C:\\Program Files\\Mozilla Firefox\\firefox.exe");
} 
catch(Exception ex){    
     System.out.println(ex.getMessage()); 
}
Описание слайда:
Example of String Command Execution Runtime r = Runtime.getRuntime(); try{ r.exec("C:\\Program Files\\Mozilla Firefox\\firefox.exe"); } catch(Exception ex){ System.out.println(ex.getMessage()); }

Слайд 6





Class Properties
represents a persistent set of properties as pairs of key-value
details are here:
http://docs.oracle.com/javase/tutorial/essential/environment/properties.html
http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html
Описание слайда:
Class Properties represents a persistent set of properties as pairs of key-value details are here: http://docs.oracle.com/javase/tutorial/essential/environment/properties.html http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html

Слайд 7





Configuration File Example
dbpassword=pass&word 
database=localhost 
dbuser=vmo
Описание слайда:
Configuration File Example dbpassword=pass&word database=localhost dbuser=vmo

Слайд 8





Use Properties Example
Properties applicationProps = new Properties();
in = new FileInputStream("appProperties");
applicationProps.load(in); 
in.close();  
String dbInfo = applicationProps. getProperty("database");
Описание слайда:
Use Properties Example Properties applicationProps = new Properties(); in = new FileInputStream("appProperties"); applicationProps.load(in); in.close(); String dbInfo = applicationProps. getProperty("database");

Слайд 9





Class Object (1 of 2)
The root of the class hierarchy
Every class has Object as a superclass
All objects, including arrays, implement the methods of this class
See http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html for details
Описание слайда:
Class Object (1 of 2) The root of the class hierarchy Every class has Object as a superclass All objects, including arrays, implement the methods of this class See http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html for details

Слайд 10





Class Object (2 of 2)
equals(Object obj) - indicates whether some other object is "equal to" this one
getClass() - returns the runtime class of this Object
clone() - creates and returns a copy of this object
toString() - returns a string representation of the object
Описание слайда:
Class Object (2 of 2) equals(Object obj) - indicates whether some other object is "equal to" this one getClass() - returns the runtime class of this Object clone() - creates and returns a copy of this object toString() - returns a string representation of the object

Слайд 11





Class Random
is used to generate a stream of pseudorandom numbers
Random(long seed) - creates a new random number generator
nextInt() - returns the next pseudorandom, uniformly distributed int value
nextInt(int n) - returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive)
See http://docs.oracle.com/javase/7/docs/api/java/util/Random.html for details
Описание слайда:
Class Random is used to generate a stream of pseudorandom numbers Random(long seed) - creates a new random number generator nextInt() - returns the next pseudorandom, uniformly distributed int value nextInt(int n) - returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive) See http://docs.oracle.com/javase/7/docs/api/java/util/Random.html for details

Слайд 12





Class Math (1 of 2)
Contains methods for performing basic numeric operations: 
elementary exponential, 
logarithm, 
square root 
trigonometric functions
See http://docs.oracle.com/javase/7/docs/api/java/lang/Math.html for details
Описание слайда:
Class Math (1 of 2) Contains methods for performing basic numeric operations: elementary exponential, logarithm, square root trigonometric functions See http://docs.oracle.com/javase/7/docs/api/java/lang/Math.html for details

Слайд 13





Class Math (2 of 2)
sqtr(double value)
exp(double value)
log(double value)
power(double value, double p)
sin(double value)
sinh(double value)
toRadians(double value)
Описание слайда:
Class Math (2 of 2) sqtr(double value) exp(double value) log(double value) power(double value, double p) sin(double value) sinh(double value) toRadians(double value)



Похожие презентации
Mypresentation.ru
Загрузить презентацию