Inheritance Inheritance Overriding and Hiding Methods Using the Keyword super Overriding and Hiding Methods Defining Methods Using the Keyword super From: http://sitestree.com/?p=5052 Categories:Java Short Notes, SCJPTags: Post Data:2009-12-15 16:31:08 Shop Online: https://www.ShopForSoul.com/ (Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com In Bengali: http://Bangla.SaLearningSchool.com http://SitesTree.com 8112223 Canada Inc./JustEtc: http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) Shop Online: https://www.ShopForSoul.com/ Medium: https://medium.com/@SayedAhmedCanada
Category: Professional
Jul 16
SCJP Training: Lesson 6: Collections / Generics #Java Short Notes #SCJP
Object Ordering Object as a Superclass Generic Types Declaring Classes Defining an Interface Passing Information to a Method or Constructor Returning a Value from a Method Generic Types Generic Methods and Constructors Wildcards Algorithms From: http://sitestree.com/?p=5053 Categories:Java Short Notes, SCJPTags: Post Data:2012-07-21 07:53:36 Shop Online: https://www.ShopForSoul.com/ (Big Data, Cloud, Security, Machine Learning): Courses: http://Training.SitesTree.com In …
Jul 16
SCJP Training: Lesson 7: Fundamentals #Java Short Notes #SCJP
Controlling Access to Members of a Class Using Package Members Command-Line Arguments Command-Line I/O Objects Passing information to a Method or Constructor Using Objects Managing Source and Class Files Assignment, Arithmetic, and Unary Operators Equality, Relational, and Conditional Operators Object as a Superclass Comparing Strings and Portions of Strings From: http://sitestree.com/?p=5054 Categories:Java Short Notes, SCJPTags: …
Jul 16
SCJP Training: Lesson 3: API Contents #Java Short Notes #SCJP
The Number Classes Characters Strings The StringBuilder Class Character Streams (FileReader, FileWriter) Buffered Streams (BufferedReader, BufferedWriter) Formatting (PrintWriter) File Objects (File) Data Streams Object Streams Manipulating Characters in a String (String split method) Methods of the Pattern Class Methods of the Matcher Class Scanning Formatting Formatting (PrintWriter, formatting parameters) Formatting Numeric Print Output (formatting parameters) …
Jul 16
SCJP Essential Knowledge #Java Short Notes #SCJP
int x=5; String y=”3″; System.out.print(x + 1 + y); Output: 63 When there is no live reference to an object, the object becomes eligible for garbage collection. The concrete interface method implementation must be public. When a class implements Comparator, it must implement a compare method. When a class implements Comparable, it must implement a …
Jul 16
SCJP Training: Lesson 1: Develop code that declares classes (including abstract and all forms of nested classes), interfaces, and enums, and includes the appropriate use of package and import statements (including static imports). #Java Short Notes #SCJP
Declaring Classes Abstract Methods and Classes Nested Classes Interfaces Enum Types Creating and Using Packages Using Package Members (import statements, static imports) Defining an Interface Implementing an Interface Abstract Methods and Classes Primitive Data Types Arrays Enum Types Understanding Instance and Class Members Variables Declaring Member Variables Understanding Instance and Class Members Passing Information to …
Jul 16
SCJP Training: Lesson 2: Flow Control #Java Short Notes #SCJP
The if-then and if-then-else Statements The switch statement The for Statement The while and do-while Statements Branching Statements Questions and Exercises:Classes (assertion example) Catching and Handling Exceptions The try Block The catch Blocks The finally Block Putting It All Together The Catch or Specify Requirement Specifying the Exceptions Thrown by a Method Putting It All …
Jul 16
SCJP: Rules #Java Short Notes #SCJP
A class’s superclasses don’t have to implement Serializable in order to be serialized if a superclass doesn’t implement Serializable then it’s constructor will run during deserialization A transient variable’s state is lost during serialization, but a volatile variable’s state is not lost Java:Volatile variable Transient Variable NumberFormat, Calendar, DateFormat are abstract classes. Use the getInstance …
Jul 16
SCJP: Short Notes #Java Short Notes #SCJP
For the package package com.sun2;public enum Seasons {SUMMER, FALL, WINTER, SPRING} Valid import statements are: import com.sun2.Seasons; // the class import static com.sun2.Seasons.*; //all enum valuesimport static com.sun2.Seasons.FALL; //only one enum value An interface can extend many interfaces Interfaces can have variables, overrides and overloads An enum can have methods and can override those methods …
Jul 16
SCJP: More Rules #Java Short Notes #SCJP
java -classpath gFolder/Game.jar civilization.java: In such command, -classpath will override (replace) CLASSPATH environment variable. java -classpath gFolder/Game.jar civilization.java: if both gFolder and current directory contain Game.jar then the jar file under gFolder will be used. If you want java compiler to recognize your jar file, either you have to mention the location of the jar …