codedamn

Introduction to Codedamn's Playground

Created by Piyush Garg about a year ago

0

No description provided

5 Comments

    1

    takeaway points :

    1. According to structure of Java compiler , we should have file named as Main.java which contains code in a block named as 'class Main ' .
    2. we should have a main method in this class Main i.e. public static void main (string [] args ) {} , this where all the code should go which u want to get executed .
    3. And in intellj , type 'sout' and press enter to autocomplete System.out.println() .
    @ravkk

    ravi karthik

    @ravkk

    1

    takeaway points :

    1. create playground for playing with java code and files but to compile use this command : javac filename which will create file with byte code and then execute this byte code file which will end with .class by using this command : java filename of bytecode file
    @ravkk

    ravi karthik

    @ravkk

    0

    To Playing with java in playgrounds #Run cmd -> javac <FileName>.java cmd -> java <ClassFileName> #NOTE :: After changes in source file then we need to recompile it by doing above steps, and new byte code is generated.

    @kodedara

    Kodedara

    @kodedara

    0

    Day 2: -javac (for compilation ) --> converts Java code to byte code (a representation of a platform-independent code)

    • java (for execution) --> compiles byte code into machine code ( code written in binary which can be understood by CPU) and executed
    @himansys

    Himanshu Kandpal

    @himansys

    0

    Great lesson with the playground!

    @rdnelson

    Ross Nelson

    @rdnelson

Your comment