7) Setting fragment backstack and popbackstack
MainActivity.java FragmentA.java FragmentB.java activity_main.xml fragment_a.xml fragment_b.xml Notes from Vivz slide nerd videos at youtube
MainActivity.java FragmentA.java FragmentB.java activity_main.xml fragment_a.xml fragment_b.xml Notes from Vivz slide nerd videos at youtube
I took these examples from Vinod Pillai lecture on youtube but I think there may be mistakes in his explanations Inner classes Outputs: Inner class display Outer class display Outer…
With the Super keyword, you can: Call superclass methods Call superclass constructors Look at the following example: This outputs: Exception in thread "main" java.lang.StackOverflowError at Square.getInformation(Test.java:30) at Square.getInformation(Test.java:30) at Square.getInformation(Test.java:30)…
Food is the superclass and Cat and Dog are the subclasses, as they inherit all the methods and variables of the food superclass. Example 1) Outputs: I am the eat…
Any time that you need a string representation of an object, we use toString. Outputs: The contructor for this is 5/6/7 Since 'this' is used, in the system.out.printf statement, it…