May 10, 2021 12:00 0 Comment Java
Java inheritance, Java inheritance, IS-A relationship, Instanceof keyword, HAS-A relationship, Java inheritance, Inheritance is an integral part of all OOP and Java languages., Inheritance is a cornerstone of Java's object programming technology
May 10, 2021 12:00 0 Comment Java
What is an exception?, What is an exception?, The hierarchy of the Exception class, Java has a built-in exception class, The exception method, Catch an exception, Multiple capture blocks, Throws/throw keywords:, The final keyword, Declare a custom exception, A generic exception, What is an exception?, When a program runs, an unexpected event occurs that prevents the program from executing as normal as the programmer expects, w
May 10, 2021 12:00 0 Comment Java
Java Scanner class, Java Scanner class, Java Scanner class, Java.util.Scanner is a new feature of Java 5, and we can get user input through the Scanner class., Here's the basic syntax for cr
May 10, 2021 12:00 0 Comment Java
Java Stream, File, and IO, Java Stream, File, and IO, Read the console input, Read multi-character input from the console, Read the string from the console, Console output, Read and write the file, FileInputStream, FileOutputStream, Files and I/O, The directory in Java, Read the directory, Delete the directory or file, DeleteFileDemo .java file code:, Java Stream, File, and IO, Java.io package contains almost all the classes that are required for the input and output of the operation., All of these
May 10, 2021 12:00 0 Comment Java
Java method, Java method, The definition of the method, Method call, Void keyword, Pass parameters by value, The overload of the method, Variable scope, The use of command-line parameters, The construction method, Variable parameters, Finalize() method, Java method, We used System.out.println() a lot in the previous chapters, so what is it?, println() is a method, while System is a system class and ou
May 10, 2021 12:00 0 Comment Java
Java regular expression, Java regular expression, The capture group, Instance, Regular expression syntax, The method of the Matcher class, The index method, Research methods, The replacement method, Start and end methods, matches and look at the At method, ReplaceFirst and ReplaceAll methods, The appendReplacement and appendTail methods, PatternSyntax Exchange class method, Java regular expression, Regular expressions define the pattern of strings., Regular expressions can be used to search, edit, or work with text., Regu
May 10, 2021 12:00 0 Comment Java
Java array, Java array, Declare array variables, Create an array, Process the array, Foreach loop, The array is used as an argument to the function, The return value of the array as a function, Array class, Java array, Arrays are one of the most important data structures for every programming language, although different languages implement and process ar
May 10, 2021 12:00 0 Comment Java
Java StringBuffer and StringBuilder classes, Java StringBuffer and StringBuilder classes, StringBuffer method, Java StringBuffer and StringBuilder classes, When you modify a string, you need to use the StringBuffer and StringBuilder classes., In addition to the
May 10, 2021 13:00 0 Comment Java
Java polymorphism, Java polymorphism, virtual method, Polymorphic implementation, Java polymorphism, Polymorphism is the ability to have multiple different manifestations or forms of the same behavior., Polymorphism is the embodimen
May 10, 2021 13:00 0 Comment Java
Java abstract class, Java abstract class, Abstract class, Inherit abstract classes, Abstract methods, Java abstract class, In object-oriented concepts, all objects are depicted by classes, but in turn, not all classes are used to depict objects, and if
May 10, 2021 13:00 0 Comment Java
Java encapsulation, Java encapsulation, Java encapsulation, In object-oriented program design, encapsulation refers to a method of wrapping and hiding the practical details of abstract lette
May 10, 2021 13:00 0 Comment Java
Java interface, Java interface, The declaration of the interface, The implementation of the interface, Inheritance of the interface, Multiple inheritance of the interface, Tag the interface, Java interface, Interface, which is an abstract type in the JAVA programming language, is a collection of abstract methods, and interfaces are usually
May 10, 2021 13:00 0 Comment Java
Java Package, Java Package, Create a package, Import keywords, The directory structure of the package, Set the CLASSPATH system variable, Java Package, To better organize classes, Java provides a package mechanism for distinguishing namespaces for class names., The role of the package, 1
May 10, 2021 13:00 0 Comment Java
Java data structure, Java data structure, Enumeration, BitSet, Vector, Stack, Dictionary, Hashtable, Properties, Java data structure, The Java toolkit provides a powerful data structure., The data structure in Java consists of the following interfaces and classes
May 10, 2021 13:00 0 Comment Java
Java collection framework, Java collection framework, The collection interface, The collection class, The collection algorithm, How to use the iterator, Java collection framework, Java provided ad hoc classes long before Java 2., Classes such as Dictionary, Vector, Stack, and Properties are used to sto