Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Naming classes

Featured Replies

What takes more memory?

void horn() {

System.out.println("BEEP");

}

OOORRRR

public static void() {

System.out.println("BEEP");}

 

------

 

Should you avoid using something like public static void when you can just get away with void???

Thanks!

9 minutes ago, obasan said:

What takes more memory?

void horn() {

System.out.println("BEEP");

}

OOORRRR

public static void() {

System.out.println("BEEP");}

 

------

 

Should you avoid using something like public static void when you can just get away with void???

Thanks!

Second one won't even compile, but source code != memory usage

40 minutes ago, obasan said:

What takes more memory?

void horn() {

System.out.println("BEEP");

}

OOORRRR

public static void() {

System.out.println("BEEP");}

 

------

 

Should you avoid using something like public static void when you can just get away with void???

Thanks!

Perhaps you should learn what public and static mean?

  • Author
11 hours ago, Explv said:

Perhaps you should learn what public and static mean?

public means that the class or object can be seen by others

static has something to do with instantiating or something.

12 hours ago, Token said:

Second one won't even compile, but source code != memory usage

fuk lol i forgot the add the horn() so its:

 

public static void horn() {

System.out.println("BEEP");

}

 

either way, what does use memory?

im guessing its all about calculations and variables you create...

i.e. dont use a double when u can get away with an int

i.e. find the most effective calculation method

Static is used when you want something to exist once.

For example:

Cat.purr(); // static - makes no sense. Cats purr individually.

Cat.count(); // static - makes sense. Get the count of all cats ever created.

new Cat().purr(); // not static - makes sense. Cats purr individually.

new Cat().count(); // not static - makes no sense. One cat can't account for all cats ever created.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.