Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,333 members, 7,957,882 topics. Date: Tuesday, 24 September 2024 at 11:05 PM |
Nairaland Forum / Science/Technology / Programming / Java Programming Language Methods And Object Need Explanation (1030 Views)
What Are The Limitations Of Flutter Over Kotlin, Swift And Object C / I Need Explanation On This Code?? Php Programmers / Please I Need Explanation Of This Express.js Code (2) (3) (4)
Java Programming Language Methods And Object Need Explanation by abdulsalamgande(m): 12:30am On Feb 10, 2018 |
Can someone help me with explanation on Methods and object in java programming? |
Re: Java Programming Language Methods And Object Need Explanation by kingvicky(m): 11:18am On Feb 10, 2018 |
abdulsalamgande: Methods are subprograms or functions that run a separate bit of code. In Java, methods are usually contained in classes and they can be called using the object of the class in which they are contained or directly in the main method if they are declared as 'static'.. As example - say we have a class named program... public class Program { //This is a method public void printToConsole() { System.out.println("Hello world" } //End the method //This is the main method public static void main(String[] args) { //Now we create an object from which we can call // the method Program p=new Program(); // Call the method with the created object p.printToConsole(); } //End main method } //End class |
Re: Java Programming Language Methods And Object Need Explanation by Desyner: 11:39am On Feb 10, 2018 |
kingvicky:Correct! 1 Like |
Re: Java Programming Language Methods And Object Need Explanation by talk2hb1(m): 12:25pm On Feb 10, 2018 |
abdulsalamgande:What Part are you not understanding? |
Re: Java Programming Language Methods And Object Need Explanation by kingvicky(m): 2:01pm On Feb 10, 2018 |
Desyner:Thank you bro! |
(1) (Reply)
APPLICATION CLOSED / Do You Wanna Earn Some Cool Cash As A Programmer? / Best Way To Be A Programmer
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9 |